<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7047935</id><updated>2011-11-28T00:46:18.002Z</updated><title type='text'>techstuff</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>62</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7047935.post-4584647750503238976</id><published>2010-08-18T18:41:00.011Z</published><updated>2010-08-20T17:17:18.918Z</updated><title type='text'>How to compile paulStretch for Ubuntu</title><content type='html'>&lt;a href="http://hypermammut.sourceforge.net/paulstretch/"&gt;paulStretch&lt;/a&gt; is fun little audio tool which lets you stretch (or shrink) an audio file and add other effects.  The best example of its prowess is found &lt;a href="http://soundcloud.com/shamantis/j-biebz-u-smile-800-slower"&gt;here&lt;/a&gt; : Justin Bieber rendered into an Orb-eque ambient track.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 153);"&gt;Step one, download the &lt;a href="http://sourceforge.net/projects/hypermammut/files/paulstretch/2.0/paulstretch-2.0.tar.bz2/download"&gt;source&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 153);"&gt;Step two, install a bunch of libraries which will allow you to compile it:&lt;/span&gt;&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;sudo apt-get install libaudiofile-dev libaudiofile0 libvorbis0a libvorbisenc2 libvorbisfile3 libfltk1.1  libportaudio0 libportaudio2 libportaudiocpp0 libmad0 libfftw3-3 fluid  g++&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Update&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-weight: bold;"&gt;Here's the full list of stuff I installed when I was trying to get this compiled.Bit of a scatter-gun approach really, I  probably didn't need them all, but it helped me get it compiled:&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;sudo apt-get install libmad0-dev  libmadlib-dev libibmad-dev&lt;br /&gt;fftw-dev fftw3-dev libfftw3-dev mffm-fftw-dev portaudio19-dev libaudiofile0 libvorbis0a libvorbisenc2 libvorbisfile3 libfltk1.1   libportaudio0 libportaudio2 libportaudiocpp0 libmad0 libfftw3-3 fluid   g++&lt;/blockquote&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 153);"&gt;Step three, unpack the downloaded file :&lt;/span&gt;&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;tar jxvf paulstretch-2.0.tar.bz2&lt;/blockquote&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 153);"&gt;Step four, edit a file in the source:&lt;/span&gt;&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;cd paulstretch-2.0/Input&lt;br /&gt;vim MP3InputS.cpp&lt;/blockquote&gt;&lt;br /&gt;add the following just after the line that says :&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;/span&gt;&lt;stdlib.h&gt;&lt;stdlib.h&gt;&lt;/stdlib.h&gt;&lt;/stdlib.h&gt;&lt;/blockquote&gt;&lt;stdlib.h&gt;&lt;br /&gt;this is near the top of the file.  Add this line:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;#include &amp;lt;string.h&amp;gt;&lt;/span&gt;&lt;string.h&gt;&lt;/string.h&gt;&lt;/blockquote&gt;&lt;string.h&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 153);"&gt;Step five, compile.&lt;/span&gt;&lt;br /&gt;Go back to the paulstretch-2.0 directory:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;cd ..&lt;/blockquote&gt;&lt;br /&gt;compile:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;./compile_linux_fftw.sh&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;You should end up with an executable file called:&lt;blockquote style="font-family: courier new;"&gt;paulstretch&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Have fun!&lt;/string.h&gt;&lt;/stdlib.h&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-4584647750503238976?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/4584647750503238976/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=4584647750503238976' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/4584647750503238976'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/4584647750503238976'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2010/08/how-to-compile-paulstretch-for-ubuntu.html' title='How to compile paulStretch for Ubuntu'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-3198524974809906376</id><published>2009-05-25T21:16:00.001Z</published><updated>2009-05-25T21:17:58.785Z</updated><title type='text'>Convert DVD aspect ration from 4:3 to 16:9</title><content type='html'>1) copy DVD files to PC hard disk folder using any one of a number of methods (dvd decrypter, dvd shrink, Nero Recode etc).&lt;br /&gt;&lt;br /&gt;2) start up IFOEDIT&lt;br /&gt;&lt;br /&gt;3) click on open button (bottom left hand corner)&lt;br /&gt;&lt;br /&gt;4) navigate to hard disk folder used in step 1 above&lt;br /&gt;&lt;br /&gt;5) select vts_01_0.ifo&lt;br /&gt;&lt;br /&gt;6) On lower screen, you will see a line that starts under the line Title Set (Movie) Video: MPEG-2 etc.&lt;br /&gt;&lt;br /&gt;Select this line by clicking on it, and then Double Click on this line, and a menu will pop up.&lt;br /&gt;&lt;br /&gt;7) Click on 16:9 option in aspect ratio box.&lt;br /&gt;&lt;br /&gt;Check boxes Automatic Pan and Scan, and Automatic Letterboxed (a tick will appear each box) make sure the Letterboxed (top and bottom cropped) button is unchecked (no tick)&lt;br /&gt;&lt;br /&gt;8) click ok and return to main Ifoedit menu&lt;br /&gt;&lt;br /&gt;9) Click on Save button&lt;br /&gt;&lt;br /&gt;10) click SAVE.&lt;br /&gt;&lt;br /&gt;11) Program will ask you to save BUP files as well. Click Yes&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(If you have multiple titles, simply repeat steps 3-11 for each title selecting VTS_NN_0.iFO where NN = 01, 02, 03 etc.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-3198524974809906376?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.digitalspy.co.uk/forums/showthread.php?t=316742' title='Convert DVD aspect ration from 4:3 to 16:9'/><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/3198524974809906376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=3198524974809906376' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/3198524974809906376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/3198524974809906376'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2009/05/convert-dvd-aspect-ration-from-43-to.html' title='Convert DVD aspect ration from 4:3 to 16:9'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-8664020404853829109</id><published>2009-03-11T14:06:00.004Z</published><updated>2009-03-11T14:14:51.540Z</updated><title type='text'>Google Calendar Bookmarklet </title><content type='html'>The bookmarklet will add a new entry to google calendar, with the URL of the current open web page as the title, with today's date as the start/end date.  It sets 20:00 as the start &lt;span style="font-style: italic;"&gt;time&lt;/span&gt; and 21:00 as the end time:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;javascript:function%20zeroPad(n,%20digits)%20{n%20=%20n.toString();while%20(n.length%20&lt;%20digits)%20{n%20=%20'0'%20+%20n;}return%20n;}var%20now=new%20Date();%20var%20t=document.&lt;br /&gt;&lt;br /&gt;location;void(window.open('http://www.google.com/calendar/event?text='+escape(t)+'&amp;amp;pprop=HowCreated:QUICKADD&amp;amp;action=TEMPLATE&amp;amp;dates='%20+%20now.getFullYear()%20+%20zeroPad(now.get&lt;br /&gt;&lt;br /&gt;Month()+1,2)%20+%20zeroPad(now.getDate(),2)%20+%20'T'%20+%20'200000'%20+%20%20%20'/'%20+%20%20now.getFullYear()%20+%20zeroPad(now.getMonth()+1,2)%20+%20zeroPad(now.getDate(),2)%2&lt;br /&gt;&lt;br /&gt;0+%20'T'%20+%20'210000'%20+%20'Z'));&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;Or drag this link to your bookmarks : &lt;a href="javascript:function%20zeroPad(n,%20digits)%20{n%20=%20n.toString();while%20(n.length%20&lt;%20digits)%20{n%20=%20'0'%20+%20n;}return%20n;}var%20now=new%20Date();%20var%20t=document.location;void(window.open('http://www.google.com/calendar/event?text='+escape(t)+'&amp;pprop=HowCreated:QUICKADD&amp;action=TEMPLATE&amp;dates='%20+%20now.getFullYear()%20+%20zeroPad(now.getMonth()+1,2)%20+%20zeroPad(now.getDate(),2)%20+%20'T'%20+%20'200000'%20+%20%20%20'/'%20+%20%20now.getFullYear()%20+%20zeroPad(now.getMonth()+1,2)%20+%20zeroPad(now.getDate(),2)%20+%20'T'%20+%20'210000'%20+%20'Z'));"&gt;Addit2GCal&lt;/a&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-8664020404853829109?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/8664020404853829109/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=8664020404853829109' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/8664020404853829109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/8664020404853829109'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2009/03/google-calendar-bookmarklet.html' title='Google Calendar Bookmarklet '/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-1166218850021146074</id><published>2009-03-07T20:45:00.001Z</published><updated>2009-03-07T20:47:52.288Z</updated><title type='text'>Poem</title><content type='html'>&lt;div style="text-align: center;"&gt;And play for a while&lt;br /&gt;and forget all&lt;br /&gt;my unfinished work&lt;br /&gt;with a smile.&lt;br /&gt;For every tomorrow&lt;br /&gt;holds work to be done,&lt;br /&gt;but lullaby moments&lt;br /&gt;and peek-a-boo fun,&lt;br /&gt;are life's tender treasures&lt;br /&gt;meant just for today,&lt;br /&gt;for babies grow up...&lt;br /&gt;and the years&lt;br /&gt;slip away.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-1166218850021146074?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/1166218850021146074/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=1166218850021146074' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/1166218850021146074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/1166218850021146074'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2009/03/poem.html' title='Poem'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-8919279929277968997</id><published>2008-10-28T23:28:00.002Z</published><updated>2008-10-28T23:31:58.041Z</updated><title type='text'>af9015/af9016 usb dvb stick ubuntu</title><content type='html'>&lt;pre&gt;lsusb&lt;br /&gt;sudo apt-get install mercurial linux-headers-$(uname -r) build-essential gcc make&lt;br /&gt;wget http://www.telecable.es/personales/bbbaaa/dvb-usb-af9015.fw&lt;br /&gt;sudo cp dvb-usb-af9015.fw /lib/firmware/2.6.20-14-generic&lt;br /&gt;hg clone http://linuxtv.org/hg/~anttip/af9015/archive/tip.tar.gz&lt;br /&gt;cd tip.tar.gz&lt;br /&gt;make &amp;amp;&amp;amp; sudo make install&lt;br /&gt;vi /etc/modules&lt;br /&gt;dvb-usb-af9015&lt;br /&gt;vi /etc/udev/rules.d/udev.rules&lt;br /&gt;# dvb devices KERNEL="dvb*", PROGRAM="/etc/udev/scripts/dvb.sh %k", NAME="%c", GROUP="video", MODE="0660"&lt;br /&gt;#!/bin/sh /bin/echo $1 | /bin/sed -e 's,dvb\([0-9]\)\.\([^0-9]*\)\([0-9]\),dvb/adapter\1/\2\3,' #end of script&lt;br /&gt;chmod +x /etc/udev/scripts/dvb.sh&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-8919279929277968997?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.ubuntu-es.org/index.php?q=node/76680' title='af9015/af9016 usb dvb stick ubuntu'/><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/8919279929277968997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=8919279929277968997' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/8919279929277968997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/8919279929277968997'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2008/10/af9015af9016-usb-dvb-stick-ubuntu.html' title='af9015/af9016 usb dvb stick ubuntu'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-3145639438448917458</id><published>2008-10-24T13:28:00.000Z</published><updated>2008-10-24T13:29:22.255Z</updated><title type='text'>Add an HP-UX item to the boot options list from the EFI Shell.</title><content type='html'>&lt;h4&gt;&lt;span class="leveld"&gt;Adding an HP-UX Boot Option&lt;/span&gt;&lt;/h4&gt;&lt;p&gt;This procedure adds an HP-UX item to the boot options list from the EFI Shell.&lt;/p&gt;&lt;div class="procedure"&gt;&lt;p&gt;To add an HP-UX boot option when logged in to HP-UX, use the &lt;span&gt;&lt;b class="command"&gt;setboot&lt;/b&gt;&lt;/span&gt; command. For details refer to the &lt;span class="nowrap"&gt;&lt;span class="citerefentry"&gt;&lt;i class="refentrytitle"&gt;setboot&lt;/i&gt;(1M)&lt;/span&gt;&lt;/span&gt; manpage.&lt;/p&gt;&lt;ol type="1"&gt;&lt;li&gt;&lt;p&gt;Access the EFI Shell environment.&lt;/p&gt;&lt;p&gt;Log in to the iLO MP and enter &lt;span&gt;&lt;b class="command"&gt;CO &lt;/b&gt;&lt;/span&gt;to access the server console.&lt;/p&gt;&lt;p&gt;When accessing the console, confirm that you are at the EFI Boot Manager menu (the main EFI menu). If you are at another EFI menu, choose the &lt;span&gt;&lt;b class="keycap"&gt;Exit&lt;/b&gt;&lt;/span&gt; option from the submenus until you return to the screen with the &lt;tt class="computeroutput"&gt;EFI Boot Manager&lt;/tt&gt; heading.&lt;/p&gt;&lt;p&gt;From the EFI Boot Manager menu, choose the &lt;span&gt;&lt;b class="keycap"&gt;EFI Shell&lt;/b&gt;&lt;/span&gt; menu option to access the EFI Shell environment.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Access the EFI System Partition (&lt;tt class="computeroutput"&gt;fs&lt;i class="parameter"&gt;&lt;tt&gt;X&lt;/tt&gt;&lt;/i&gt;:&lt;/tt&gt; where &lt;i class="parameter"&gt;&lt;tt&gt;X&lt;/tt&gt;&lt;/i&gt; is the file system number) for the device from which you want to boot HP-UX.&lt;/p&gt;&lt;p&gt;For example, enter &lt;span&gt;&lt;b class="command"&gt;fs2:&lt;/b&gt;&lt;/span&gt; to access the EFI System Partition for the bootable file system number &lt;span&gt;&lt;b class="command"&gt;2&lt;/b&gt;&lt;/span&gt;. The EFI Shell prompt changes to reflect the file system currently accessed.&lt;/p&gt;&lt;p&gt;The full path for the HP-UX loader is &lt;span&gt;&lt;b class="command"&gt;\EFI\HPUX\HPUX.EFI&lt;/b&gt;&lt;/span&gt; and it should be on the device you are accessing.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;At the EFI Shell environment, use the &lt;span&gt;&lt;b class="command"&gt;bcfg&lt;/b&gt;&lt;/span&gt; command to manage the boot options list.&lt;/p&gt;&lt;p&gt;The &lt;span&gt;&lt;b class="command"&gt;bcfg&lt;/b&gt;&lt;/span&gt; command includes the following options for managing the boot options list:&lt;/p&gt;&lt;div&gt;&lt;ul class="primarybullet"&gt;&lt;li&gt;&lt;div class="listitembody"&gt;&lt;p class="list-initial"&gt;&lt;span&gt;&lt;b class="command"&gt;bcfg boot dump&lt;/b&gt;&lt;/span&gt; — Display all items in the boot options list for the server.&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class="listitembody"&gt;&lt;p class="list-initial"&gt;&lt;span&gt;&lt;b class="command"&gt;bcfg boot rm &lt;i class="parameter"&gt;&lt;tt&gt;#&lt;/tt&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt; — Remove the item number specified by &lt;i class="parameter"&gt;&lt;tt&gt;#&lt;/tt&gt;&lt;/i&gt; from the boot options list.&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class="listitembody"&gt;&lt;p class="list-initial"&gt;&lt;span&gt;&lt;b class="command"&gt;bcfg boot mv &lt;i class="parameter"&gt;&lt;tt&gt;#a&lt;/tt&gt;&lt;/i&gt; &lt;i class="parameter"&gt;&lt;tt&gt;#b&lt;/tt&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;  — Move the item number specified by &lt;i class="parameter"&gt;&lt;tt&gt;#a&lt;/tt&gt;&lt;/i&gt; to the position specified by &lt;i class="parameter"&gt;&lt;tt&gt;#b&lt;/tt&gt;&lt;/i&gt; in the boot options list.&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class="listitembody"&gt;&lt;p class="list-initial"&gt;&lt;span&gt;&lt;b class="command"&gt;bcfg boot add &lt;i class="parameter"&gt;&lt;tt&gt;#&lt;/tt&gt;&lt;/i&gt; &lt;i class="parameter"&gt;&lt;tt&gt;file.efi&lt;/tt&gt;&lt;/i&gt; "&lt;i class="parameter"&gt;&lt;tt&gt;Description&lt;/tt&gt;&lt;/i&gt;"&lt;/b&gt;&lt;/span&gt; — Add a new boot option to the position in the boot options list specified by &lt;i class="parameter"&gt;&lt;tt&gt;#&lt;/tt&gt;&lt;/i&gt;. The new boot option references &lt;i class="parameter"&gt;&lt;tt&gt;file.efi&lt;/tt&gt;&lt;/i&gt; and is listed with the title specified by &lt;i class="parameter"&gt;&lt;tt&gt;Description&lt;/tt&gt;&lt;/i&gt;.&lt;/p&gt;&lt;p class="list-last"&gt;For example, &lt;span&gt;&lt;b class="command"&gt;bcfg boot add 1 \EFI\HPUX\HPUX.EFI "HP-UX 11i" &lt;/b&gt;&lt;/span&gt;adds an HP-UX 11i item as the first entry in the boot options list.&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;p&gt;Refer to the &lt;span&gt;&lt;b class="command"&gt;help bcfg&lt;/b&gt;&lt;/span&gt; command for details.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Exit the console and iLO MP interfaces if you are finished using them.&lt;/p&gt;&lt;p&gt;Press &lt;span&gt;&lt;b class="keycap"&gt;Ctrl+B&lt;/b&gt;&lt;/span&gt; to exit the system console and return to the iLO MP Main Menu. To exit the iLO MP, type &lt;span&gt;&lt;b class="command"&gt;X &lt;/b&gt;&lt;/span&gt;at the Main Menu.&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-3145639438448917458?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://docs.hp.com/en/A6961-96013/apbs03.html' title='Add an HP-UX item to the boot options list from the EFI Shell.'/><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/3145639438448917458/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=3145639438448917458' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/3145639438448917458'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/3145639438448917458'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2008/10/add-hp-ux-item-to-boot-options-list.html' title='Add an HP-UX item to the boot options list from the EFI Shell.'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-32157033558117702</id><published>2008-10-01T08:49:00.001Z</published><updated>2008-10-01T08:50:26.786Z</updated><title type='text'>Sun SVM script to simplify the metastat output</title><content type='html'>&lt;pre&gt;#!/usr/bin/ksh&lt;br /&gt;#&lt;br /&gt;# 'nawk' script to parse 'metastat' output and present&lt;br /&gt;# in a useful output.&lt;br /&gt;#&lt;br /&gt;# Example:&lt;br /&gt;#  # metainfo&lt;br /&gt;# Device  Size MB Mirror0 State0  Device0         Mirror1 State1  Device1&lt;br /&gt;# d60:    10240,6 d61     Okay    c1t0d0s6        d62     Okay    c1t1d0s6&lt;br /&gt;# d40:    4099,22 d41     Okay    c1t0d0s4        d42     Okay    c1t1d0s4&lt;br /&gt;# d30:    2052,09 d31     Okay    c1t0d0s3        d32     Okay    c1t1d0s3&lt;br /&gt;# d20:    2052,09 d21     Okay    c1t0d0s1        d22     Okay    c1t1d0s1&lt;br /&gt;# d10:    3075,66 d11     Okay    c1t0d0s0        d12     Okay    c1t1d0s0&lt;br /&gt;# d50:    2052,09 d51     Okay    c1t0d0s5        d52     Okay    c1t1d0s5&lt;br /&gt;#&lt;br /&gt;# Submitted by: Adrian Meier&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;metastat | nawk '&lt;br /&gt;BEGIN   { print "Device Size MB Mirror0 State0  Device0 Mirror1 State1  Device1"&lt;br /&gt;   OFS="   "}&lt;br /&gt;/Mirror/ { if (dev != "") print dev, size, mir0, stat0, dev0, mir1, stat1, dev1&lt;br /&gt;   dev=$1; size=""; mir0=""; stat0=""; dev0="" }&lt;br /&gt;/Size:/  { if (size == "") size=$2/2048 }&lt;br /&gt;/Submirror 0/ { mir0=$3 }&lt;br /&gt;/Submirror 1/ { mir1=$3 }&lt;br /&gt;/State:/ { if (stat0 == "") stat0=$2; else stat1=$2 }&lt;br /&gt;/c.t.d.s./ { if (dev0 == "") dev0=$1; else dev1=$1 }&lt;br /&gt;END  { print dev, size, mir0, stat0, dev0, mir1, stat1, dev1 }'&lt;br /&gt;&lt;br /&gt;# Exit&lt;br /&gt;exit 0&lt;br /&gt;&lt;br /&gt;##############################################################################&lt;br /&gt;### This script is submitted to BigAdmin by a user of the BigAdmin community.&lt;br /&gt;### Sun Microsystems, Inc. is not responsible for the&lt;br /&gt;### contents or the code enclosed.&lt;br /&gt;###&lt;br /&gt;###&lt;br /&gt;### Copyright 2008 Sun Microsystems, Inc. ALL RIGHTS RESERVED&lt;br /&gt;### Use of this software is authorized pursuant to the&lt;br /&gt;### terms of the license found at&lt;br /&gt;### http://www.sun.com/bigadmin/common/berkeley_license.html&lt;br /&gt;##############################################################################&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-32157033558117702?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.sun.com/bigadmin/scripts/submittedScripts/metainfo.txt' title='Sun SVM script to simplify the metastat output'/><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/32157033558117702/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=32157033558117702' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/32157033558117702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/32157033558117702'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2008/10/sun-svm-script-to-simplify-metastat.html' title='Sun SVM script to simplify the metastat output'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-3695113414552920337</id><published>2008-09-10T15:25:00.001Z</published><updated>2008-09-10T15:26:54.752Z</updated><title type='text'>winexec to change Windows password remotely using linux</title><content type='html'>&lt;span style="font-family: courier new;"&gt;./winexe -U Administrator%support //HOSTNAME 'net user Administrator support'&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-3695113414552920337?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://eol.ovh.org/winexe/' title='winexec to change Windows password remotely using linux'/><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/3695113414552920337/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=3695113414552920337' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/3695113414552920337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/3695113414552920337'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2008/09/winexec-to-change-windows-password.html' title='winexec to change Windows password remotely using linux'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-7299290896245369716</id><published>2008-08-20T14:28:00.002Z</published><updated>2008-08-20T14:30:25.740Z</updated><title type='text'>running a script when a usb device is plugeed in</title><content type='html'>&lt;span style="font-weight: bold;"&gt;/etc/udev/rules.d/local.rules:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;KERNEL=="sd?1", SUBSYSTEM=="block", ATTRS{vendor}=="Apple   ", RUN+="/usr/local/sbin/eject_ipod.sh $devpath $name"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/usr/local/sbin/eject_ipod.sh:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;#!/bin/bash&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;LOG=/tmp/help.log&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&gt;$LOG&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;/bin/sleep 1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;/bin/echo "$(date)" &gt;&gt;$LOG&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;/bin/echo $* &gt;&gt;$LOG&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;DEVICE="/dev/$2"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;echo "device=$DEVICE" &gt;&gt; $LOG&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;echo "$DEVICE"|grep [0-9]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;STATUS=$?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;echo "STATUS=$STATUS" &gt;&gt; $LOG&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;if [[ $STATUS -eq 0 ]]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;then&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;        echo "EJECT EJECT EJECT"&gt;&gt;$LOG&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;        /usr/bin/eject -v $DEVICE &gt;&gt;$LOG 2&gt;&amp;amp;1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;fi&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-7299290896245369716?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://reactivated.net/writing_udev_rules.htm' title='running a script when a usb device is plugeed in'/><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/7299290896245369716/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=7299290896245369716' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/7299290896245369716'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/7299290896245369716'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2008/08/running-script-when-usb-device-is.html' title='running a script when a usb device is plugeed in'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-4054937979094200713</id><published>2008-07-25T14:31:00.003Z</published><updated>2008-07-25T14:38:29.950Z</updated><title type='text'>SVM (formerly disksuite)</title><content type='html'>&lt;span style="font-family:courier new;"&gt;# &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;/usr/sbin/metainit d101 1 1 c1t2d0s2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;/usr/sbin/metainit d102 1 1 c1t3d0s2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;/usr/sbin/metainit d100 -m d101 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;/usr/sbin/metattach d100 d102&lt;br /&gt;#&lt;br /&gt;metainit d110 -p d100 10g&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;metainit d111 -p d100 5g&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;metainit d112 -p d100 20g&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;metainit d113 -p d100 2g&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-4054937979094200713?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/4054937979094200713/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=4054937979094200713' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/4054937979094200713'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/4054937979094200713'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2008/07/svm-formerly-disksuite.html' title='SVM (formerly disksuite)'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-4078314588834483125</id><published>2008-07-23T12:17:00.001Z</published><updated>2008-07-23T12:19:29.282Z</updated><title type='text'>Solaris Containers Quick Ref</title><content type='html'># Solaris Zone Setup&lt;br /&gt;# create the softpartitions:&lt;br /&gt;metainit d211 -p d200 5g&lt;br /&gt;metainit d212 -p d200 20g&lt;br /&gt;metainit d213 -p d200 2g&lt;br /&gt;zonecfg -z boxcar -f boxcar_zone.cfg&lt;br /&gt;zoneadm -z boxcar verify&lt;br /&gt;zoneadm -z boxcar install -p -a /var/tmp/falls-z1.flar&lt;br /&gt;zoneadm -z boxcar boot&lt;br /&gt;&lt;br /&gt;zoneadm list -v&lt;br /&gt;zlogin -C boxcar&lt;br /&gt;# ~. to exit console&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;#Contents of cfg file:&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;create -t SUNWsolaris8&lt;br /&gt;set zonepath = /sol8/boxcar&lt;br /&gt;add net&lt;br /&gt;set address = 172.25.78.114&lt;br /&gt;set physical = e1000g0&lt;br /&gt;end&lt;br /&gt;add dedicated-cpu&lt;br /&gt;set ncpus=2-4&lt;br /&gt;set importance=10&lt;br /&gt;end&lt;br /&gt;add capped-memory&lt;br /&gt;set physical=8192m&lt;br /&gt;end&lt;br /&gt;add fs&lt;br /&gt;set dir=/var&lt;br /&gt;set special=/dev/md/dsk/d211&lt;br /&gt;set raw=/dev/md/rdsk/d211&lt;br /&gt;set type=ufs&lt;br /&gt;end&lt;br /&gt;add fs&lt;br /&gt;set dir=/opt&lt;br /&gt;set special=/dev/md/dsk/d212&lt;br /&gt;set raw=/dev/md/rdsk/d212&lt;br /&gt;set type=ufs&lt;br /&gt;end&lt;br /&gt;add fs&lt;br /&gt;set dir=/oracle&lt;br /&gt;set special=/dev/md/dsk/d213&lt;br /&gt;set raw=/dev/md/rdsk/d213&lt;br /&gt;set type=ufs&lt;br /&gt;end&lt;br /&gt;verify&lt;br /&gt;commit&lt;br /&gt;exit&lt;br /&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-4078314588834483125?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/4078314588834483125/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=4078314588834483125' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/4078314588834483125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/4078314588834483125'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2008/07/solaris-containers-quick-ref.html' title='Solaris Containers Quick Ref'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-6407145923903716295</id><published>2008-07-14T19:19:00.005Z</published><updated>2008-07-15T13:08:57.568Z</updated><title type='text'>Using Amazon S3 as storage for a web site</title><content type='html'>I used "s3cmd" under ubuntu to create a new bucket, then upload a jpeg to it:&lt;br /&gt;&lt;br /&gt;Configure s3cmd to use your Amazon S3 account:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;s3cmd --configure&lt;/span&gt;&lt;br /&gt;Make a new bucket:&amp;lt;bucket&amp;gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;s3cmd mb s3://&lt;bucket&gt;&lt;/bucket&gt;&lt;/span&gt;&lt;br /&gt;Upload a jpeg to the bucket:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;s3cmd -P --mime-type=image/jpeg put picture.jpg s3://&lt;bucket&gt;&lt;/bucket&gt;&lt;/span&gt;&amp;lt;bucket&amp;gt;&lt;br /&gt;The URL for the file:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;http://&lt;/span&gt;&amp;lt;bucket&amp;gt;&lt;span style="font-family:courier new;"&gt;&lt;bucket&gt;.s3.amazonaws.com/picture.jpg&lt;/bucket&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-6407145923903716295?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/6407145923903716295/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=6407145923903716295' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/6407145923903716295'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/6407145923903716295'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2008/07/using-amazon-s3-as-storage-for-web-site.html' title='Using Amazon S3 as storage for a web site'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-5287961144144845613</id><published>2008-05-19T10:08:00.000Z</published><updated>2008-05-19T10:08:08.962Z</updated><title type='text'>Cisco VPN Client Patch update for 2.6.24 final</title><content type='html'>&lt;a href="http://tuxx-home.at/archives/2008/01/25/T09_54_46/"&gt;[www.tuxx-home.at] - Website of Alexander Griesser | Cisco VPN Client Patch update for 2.6.24 final&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;How to get cisco vpnclient working in Hardy Heron (8.04 LTS).  This site includes downloads.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-5287961144144845613?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://tuxx-home.at/archives/2008/01/25/T09_54_46/' title='Cisco VPN Client Patch update for 2.6.24 final'/><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/5287961144144845613/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=5287961144144845613' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/5287961144144845613'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/5287961144144845613'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2008/05/cisco-vpn-client-patch-update-for-2624.html' title='Cisco VPN Client Patch update for 2.6.24 final'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-4627978321985503744</id><published>2008-05-17T14:46:00.000Z</published><updated>2008-05-17T14:46:26.295Z</updated><title type='text'>wicd - download</title><content type='html'>&lt;a href="http://wicd.sourceforge.net/download.php"&gt;wicd - download&lt;/a&gt;: "deb http://apt.wicd.net gutsy extras"&lt;br /&gt;&lt;br /&gt;Use this instead of nm-applet (network-manager) in ubuntu - no stupid extra passwords to enter&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-4627978321985503744?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://wicd.sourceforge.net/download.php' title='wicd - download'/><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/4627978321985503744/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=4627978321985503744' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/4627978321985503744'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/4627978321985503744'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2008/05/wicd-download.html' title='wicd - download'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-7866992836760119557</id><published>2008-05-17T14:16:00.002Z</published><updated>2008-05-17T14:17:39.820Z</updated><title type='text'>Remove the password prompt after suspend in Ubuntu</title><content type='html'>type gconf-editor&lt;br /&gt;&lt;br /&gt;go to the key at /apps/gnome-power-manager&lt;br /&gt;&lt;br /&gt;Remove the ticks in the right boxes.  There is help.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-7866992836760119557?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/7866992836760119557/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=7866992836760119557' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/7866992836760119557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/7866992836760119557'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2008/05/remove-password-prompt-after-suspend-in.html' title='Remove the password prompt after suspend in Ubuntu'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-1352508037393535663</id><published>2008-03-15T12:13:00.003Z</published><updated>2008-03-15T12:21:08.948Z</updated><title type='text'>Ubuntu / nvidia shenannigans</title><content type='html'>Right, the last post about nvidia drivers on Ubuntu and my Samsung telly?  Rubbish.  It didn't work.  Well it sort of did.  When I let Ubuntu take care of installing the nvidia drivers, it installed the nvidia-legacy drivers, as I guess my card is old.  This caused problems when I tried to build &lt;a href="http://www.xbmc.org"&gt;XBMC &lt;/a&gt;for linux.  The problem being that it wouldn't compile.&lt;br /&gt;So, I removed everything vaguely nvidia related, rebooted, then installed this nifty utility, &lt;a href="http://www.albertomilone.com/nvidia_scripts1.html"&gt;Envy&lt;/a&gt;.&lt;br /&gt;Basically it takes care of getting the nvidia drivers straight from the nvidia site, installs them and all the prequistes.  Dead good.  However after the reboot, I was back to 800x600.  Arse.&lt;br /&gt;&lt;br /&gt;So, I went to the &lt;a href="http://xtiming.sourceforge.net/cgi-bin/xtiming.pl"&gt;The XFree86 Modeline Generator&lt;/a&gt; site, which generates modeline entries for you xorg.conf.  The instructions are there, and using the information from my telly's owner's manual, I finally got Ubuntu at the max resolution for my TV &lt;span style="font-weight: bold;"&gt;AND&lt;/span&gt; built and more importantly, &lt;span style="font-weight: bold;"&gt;ran&lt;/span&gt; XBMC. Woohoo!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-1352508037393535663?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/1352508037393535663/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=1352508037393535663' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/1352508037393535663'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/1352508037393535663'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2008/03/ubuntu-nvidia-shenannigans.html' title='Ubuntu / nvidia shenannigans'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-519477748901238267</id><published>2008-03-14T09:29:00.006Z</published><updated>2008-03-14T09:53:27.637Z</updated><title type='text'>Samsung LCD TV and Ubuntu</title><content type='html'>I recently bought a nice new 37" Samsung LE37S86BDX LCD TV from &lt;a href="http://www.argos.co.uk/static/Product/partNumber/5363735/Trail/C%24cip%3D1500011405.Sound%2Band%2Bvision%3EC%24cip%3D1500011489.Televisions%3EC%24cip%3D1500011492.37%2Binch%2BLCD%2BTVs%3EFC%24Brands%3DSamsung.Samsung.htm"&gt;Argos&lt;/a&gt;.  It's very nice, but I've had a few problems with it...&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;First off&lt;/span&gt;, when watching my Sky+ box via SCART, the telly would randomly and intermittently switch itself to standby, then back on, then back to standby, then back on again.  Which was nice.  A call to the nice (really) people at Argos got me put through to the equally nice people at Samsung, who arranged to a local TV repair firm to come "fix" it.  The guy came, pressed a mysterious sequence of buttons on the remote, and a secret menu popped up on screen.  From there he switched off "Watch Dog" mode.  The engineer didn't know what it was, but knew it would solve the problem.  Huh.&lt;br /&gt;&lt;br /&gt;Well, since then I've done a bit of "research" (google search) and came up with &lt;a href="http://www.digitalspy.co.uk/forums/showthread.php?t=724132"&gt;this &lt;/a&gt;link at digitalspy, where someone had the same problem, but Samsung told him how to sort it out over the phone.  I wish they'd told me this over the phone, it would have saved me a morning sitting of around waiting for the TV guy to turn up.  Anyway, here's what he did:&lt;br /&gt;&lt;br /&gt;With the TV on standby:&lt;br /&gt;Press INFO, MENU, MUTE, POWER and the TV should spring to life with a new menu on screen (the "service menu").  Scroll down to option 9 on the first screen, press left arrow to get to a sub-menu where you will see "Watch dog" a little way down the screen.  Scroll down to it, press left arrow to change it to "off".  That's it apparently.  Switch off the TV and switch it on again.&lt;br /&gt;I'm just waiting to see if that has done the trick.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Secondly &lt;/span&gt;I used the VGA port on the back of the telly to connect my little Ubuntu box to the telly.  With the video drivers that Ubuntu uses as default (vesa?) Ubuntu worked a treat.  It worked out the correct resolution (1360x768) and all was well.  Then I wanted to enable desktop effects.  Ubuntu told me I should install the nVidia closed source drivers to allow wizzy effects,  and that it could do so automagically from one of it's apt repositories.  Great, I thought, do it.&lt;br /&gt;It did it, rebooted and ... 800x600.  Pants.&lt;br /&gt;&lt;br /&gt;Skip forward several hours of fighting with the screen settings, the resolution settings to me actually working out the modeline entry for the xorg.conf file:&lt;br /&gt;&lt;br /&gt;here it is:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;modeline "1360x768@60" 85.5 1360 1440 1552 1792 768 771 777 795 +hsync +vsync&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;That was hard work.  Also, this didn't solve the problem completely, because although the login-screen was now being displayed in glorious 1360x768, the desktop for my default user was not.  It turns out editing this file : &lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;$HOME/.gconf/desktop/gnome/screen/htpc/0/%gconf.xml&lt;/span&gt;&lt;/span&gt; and changing 1024x768 to 1360x768, and logging out and in again fixed the issue.&lt;br /&gt;&lt;br /&gt;Blimey.  What a kerfuffle.  And they say Linux is ready for the desktop!&lt;br /&gt;&lt;br /&gt;Anyway, next on the list: building &lt;a href="http://www.xbmc.org/"&gt;XBMC &lt;/a&gt;for &lt;a href="http://xbmc.svn.sourceforge.net/viewvc/*checkout*/xbmc/branches/linuxport/XBMC/README.linux"&gt;Linux &lt;/a&gt;on it!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-519477748901238267?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/519477748901238267/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=519477748901238267' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/519477748901238267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/519477748901238267'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2008/03/samsung-lcd-tv-and-ubuntu.html' title='Samsung LCD TV and Ubuntu'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-5330189591385312750</id><published>2008-03-12T11:30:00.000Z</published><updated>2008-03-12T11:30:26.335Z</updated><title type='text'>Download BBC iPlayer videos in mp4 format</title><content type='html'>&lt;a href="http://www.triffid.org/blog/2008/03/download-drm-free-video-from-bbc.html"&gt;triffid.org -- Cheese Dreams&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-5330189591385312750?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.triffid.org/blog/2008/03/download-drm-free-video-from-bbc.html' title='Download BBC iPlayer videos in mp4 format'/><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/5330189591385312750/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=5330189591385312750' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/5330189591385312750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/5330189591385312750'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2008/03/download-bbc-iplayer-videos-in-mp4.html' title='Download BBC iPlayer videos in mp4 format'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-5385993964833593778</id><published>2008-03-05T12:07:00.002Z</published><updated>2008-03-05T12:12:38.745Z</updated><title type='text'>Command-line vi</title><content type='html'>&lt;span style="font-family:courier new;"&gt;vi +':g /yyyy/s//xxxx/g' +':wq!' tat&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;This command will load file "tat" into vi, replace all instances of "yyyy" with "xxxx" then save the file and quit vi... or...&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;vi +':%s/xxxx/yyyy/g' +':wq!' tat&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Apparently "%" in this case is a synonym for "1,$"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-5385993964833593778?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/5385993964833593778/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=5385993964833593778' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/5385993964833593778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/5385993964833593778'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2008/03/command-line-vi.html' title='Command-line vi'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-7266702627089942163</id><published>2008-03-04T15:17:00.001Z</published><updated>2008-03-04T15:28:29.424Z</updated><title type='text'>Optimize A Fresh Ubuntu Installation - Wired How-To Wiki</title><content type='html'>&lt;a href="http://howto.wired.com/wiki/Optimize_A_Fresh_Ubuntu_Installation"&gt;Optimize A Fresh Ubuntu Installation - Wired How-To Wiki&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Need to take note of this.  The Automatix2 thing looks interesting!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-7266702627089942163?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/7266702627089942163/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=7266702627089942163' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/7266702627089942163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/7266702627089942163'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2008/03/optimize-fresh-ubuntu-installation.html' title='Optimize A Fresh Ubuntu Installation - Wired How-To Wiki'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-1535295135502532384</id><published>2008-03-04T08:52:00.003Z</published><updated>2008-03-04T15:28:12.371Z</updated><title type='text'>Defragmenting Windows XP</title><content type='html'>I want to take a look at &lt;a href="http://www.howtogeek.com/howto/windows/defragment-your-system-files-pagefile-and-registry-in-windows-xp/"&gt;this&lt;/a&gt;.  Seems like a good idea seeing as I am starting to play games with my PC again, I should probably be looking at trying to improve its performance.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-1535295135502532384?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/1535295135502532384/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=1535295135502532384' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/1535295135502532384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/1535295135502532384'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2008/03/defragmenting-windows-xp.html' title='Defragmenting Windows XP'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-7121259665309836037</id><published>2008-02-27T21:22:00.004Z</published><updated>2008-02-27T22:21:12.750Z</updated><title type='text'>UBW USB Whacker under ubuntu linux</title><content type='html'>I recently bought one of &lt;a href="http://www.sparkfun.com/commerce/product_info.php?products_id=762"&gt;these&lt;/a&gt;, a "UBW USB Whacker".&lt;br /&gt;It will allow me to control all sorts of fun things from my PC, much in the same way as my parallel port home automation experiment.  Brian Schmalz, the inventor,  explains far better than I, what it does on his &lt;a href="http://greta.dhs.org/UBW/index.html"&gt;site&lt;/a&gt;:  &lt;blockquote style="font-family: times new roman;"&gt;The UBW board is a small board that contains a Microchip PIC USB-capable microcontroller, headers to bring out all of the PICs signal lines (to a breadboard for example), only costs about $15-$20 to build and is powered from the USB connection.&lt;/blockquote&gt;Also on Brian's site are several explanations on how to use this gadget with Windows and Liberty BASIC.  I don't want to use it under Windows, so here are a few first pointers to using it under Linux, specifically the flavour I run , Ubuntu 7.10:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 1 &lt;/span&gt;: Just plug it in.  It should appear at &lt;span style="font-family:courier new;"&gt;/dev/ttyACM0&lt;/span&gt; or &lt;span style="font-family:courier new;"&gt;/dev/ttyACM1&lt;/span&gt; - go take a look.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 2&lt;/span&gt;: Create a symbolic link from &lt;span style="font-family:courier new;"&gt;/dev/ttyS3&lt;/span&gt; to &lt;span style="font-family:courier new;"&gt;/dev/ttyACM0&lt;/span&gt; so gtkterm can talk to it.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 3&lt;/span&gt;: Run up &lt;span style="font-family:courier new;"&gt;gtkterm&lt;/span&gt;, connect to &lt;span style="font-family:courier new;"&gt;/dev/ttyS3&lt;/span&gt; and type "&lt;span style="font-family:courier new;"&gt;V&lt;/span&gt;" without the quotes and press ENTER. You should get something back along the lines of: "&lt;span style="font-family:courier new;"&gt;UBW FW D Version 1.4.1&lt;/span&gt;".  This shows everything is working.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 4&lt;/span&gt;: I wanted to run something in a programming language, and as I am quite familiar with PHP, I got hold of &lt;a href="http://www.phpclasses.org/browse/package/3679.html"&gt;this&lt;/a&gt; class for talking to serial devices.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 5&lt;/span&gt;:  The following code in conjunction with the above class allowed me to do the same thing from within a PHP program as I did from within gtkterm:&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&amp;lt;?php&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;include "php_serial.class.php";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;// Let's start the class&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$serial = new phpSerial;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;// First we must specify the device. This works on both linux and windows (if&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;// your linux serial device is /dev/ttyS0 for COM1, etc)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$serial-&gt;deviceSet("/dev/ttyS3");&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;// Then we need to open it&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$serial-&gt;deviceOpen();&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;// To write into&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$serial-&gt;sendMessage("V\n");&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;// Or to read from&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$read = $serial-&gt;readPort();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;echo "output : \n $read \n";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;// If you want to change the configuration, the device must be closed&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$serial-&gt;deviceClose();&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;?&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;That's it for now.  Look on the &lt;a href="http://greta.dhs.org/UBW/index.html"&gt;UBW home page&lt;/a&gt; for more information on the commands you need to send to the device to make it do stuff.  I'll post more interesting stuff when I've learnt how!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-7121259665309836037?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/7121259665309836037/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=7121259665309836037' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/7121259665309836037'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/7121259665309836037'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2008/02/ubw-usb-whacker-under-ubuntu-linux.html' title='UBW USB Whacker under ubuntu linux'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-2796585655856344617</id><published>2008-02-27T09:22:00.002Z</published><updated>2008-02-27T09:26:45.705Z</updated><title type='text'>usb devices empty in vmware host under linux</title><content type='html'>I had an issue running vmware server on my ubuntu 7.10 box where the vmware host could not see any usb devices connected to the linux box.  &lt;a href="http://www.electrictoolbox.com/vmware-usb-issues-opensuse-103/"&gt;This &lt;/a&gt;site has the answer, at the bottom.&lt;br /&gt;&lt;br /&gt;Basically you need to put this line in /etc/fstab:&lt;br /&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;code class="block"&gt;&lt;/code&gt;&lt;blockquote&gt;usbfs   /proc/bus/usb   usbfs   &lt;b&gt;auto&lt;/b&gt; 0 0&lt;/blockquote&gt;&lt;br /&gt;and reboot (bit drastic), or just issue this command:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;blockquote&gt;mount -t usbfs none /proc/bus/usb&lt;/blockquote&gt;&lt;br /&gt;before restarting vmware server (/etc/init.d/vmware-server restart) and startup the host computer again.&lt;br /&gt;&lt;code class="block"&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-2796585655856344617?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/2796585655856344617/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=2796585655856344617' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/2796585655856344617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/2796585655856344617'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2008/02/usb-devices-empty-in-vmware-host-under.html' title='usb devices empty in vmware host under linux'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-8650968905056102471</id><published>2008-02-16T12:53:00.003Z</published><updated>2008-02-16T12:58:28.943Z</updated><title type='text'>ubuntu</title><content type='html'>I have moved from Fedora 7 to Ubuntu 7.10.  I got really bored of the bleeding edge that is Fedora.  Bleeding edge is fine for a kickabout, but not good for a stable system.&lt;br /&gt;I am running Ubuntu 7.10 as an SMTP mail host using postfix and horde for webmail.&lt;br /&gt;The box is also my home router, so I can keep full control of what comes in and goes out.&lt;br /&gt;I also run motion 3.2.9 and capture images from an Edimax 1500wg wifi camera.  The results are logged to a MySQL database and I wrote my own web frontend in php to display the results.  This project will soon be on sourceforge.&lt;br /&gt;&lt;br /&gt;Stand by for some technical details which I will post here soon, for no other reason than to maintain a sort of changelog in case I have to do it all again!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-8650968905056102471?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/8650968905056102471/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=8650968905056102471' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/8650968905056102471'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/8650968905056102471'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2008/02/ubuntu.html' title='ubuntu'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-6225134340592648236</id><published>2008-02-16T12:43:00.001Z</published><updated>2008-02-16T12:43:55.626Z</updated><title type='text'>hp-ux 11.23 kernel</title><content type='html'>kcweb -t&lt;br /&gt;kconfig&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-6225134340592648236?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/6225134340592648236/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=6225134340592648236' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/6225134340592648236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/6225134340592648236'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2008/02/hp-ux-1123-kernel.html' title='hp-ux 11.23 kernel'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-115530480973654081</id><published>2006-08-11T13:53:00.001Z</published><updated>2008-02-16T12:45:18.343Z</updated><title type='text'>generate ssl certs for web</title><content type='html'>openssl genrsa -des3 -out filename.key 1024&lt;br /&gt;openssl req -new -key filename.key -out filename.csr&lt;br /&gt;openssl req -new -key filename.key -x509 -out filename.crt&lt;br /&gt;cp filename.key filename.key.passphrase&lt;br /&gt;openssl rsa -in filename.key.passphrase -out filename.key&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-115530480973654081?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/115530480973654081/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=115530480973654081' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/115530480973654081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/115530480973654081'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2006/08/openssl-genrsa-des3-out-filename.html' title='generate ssl certs for web'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-115260943586796214</id><published>2006-07-11T09:16:00.001Z</published><updated>2008-02-16T12:45:40.554Z</updated><title type='text'>sed handy hints</title><content type='html'>-------------------------------------------------------------------------&lt;br /&gt;HANDY ONE-LINERS FOR SED (Unix stream editor)               Apr. 26, 2004&lt;br /&gt;compiled by Eric Pement - pemente[at]northpark[dot]edu        version 5.4&lt;br /&gt;Latest version of this file is usually at:&lt;br /&gt;   http://sed.sourceforge.net/sed1line.txt&lt;br /&gt;   http://www.student.northpark.edu/pemente/sed/sed1line.txt&lt;br /&gt;This file is also available in Portuguese at:&lt;br /&gt;   http://www.lrv.ufsc.br/wmaker/sed_ptBR.html&lt;br /&gt;&lt;br /&gt;FILE SPACING:&lt;br /&gt;&lt;br /&gt; # double space a file&lt;br /&gt; sed G&lt;br /&gt;&lt;br /&gt; # double space a file which already has blank lines in it. Output file&lt;br /&gt; # should contain no more than one blank line between lines of text.&lt;br /&gt; sed '/^$/d;G'&lt;br /&gt;&lt;br /&gt; # triple space a file&lt;br /&gt; sed 'G;G'&lt;br /&gt;&lt;br /&gt; # undo double-spacing (assumes even-numbered lines are always blank)&lt;br /&gt; sed 'n;d'&lt;br /&gt;&lt;br /&gt; # insert a blank line above every line which matches "regex"&lt;br /&gt; sed '/regex/{x;p;x;}'&lt;br /&gt;&lt;br /&gt; # insert a blank line below every line which matches "regex"&lt;br /&gt; sed '/regex/G'&lt;br /&gt;&lt;br /&gt; # insert a blank line above and below every line which matches "regex"&lt;br /&gt; sed '/regex/{x;p;x;G;}'&lt;br /&gt;&lt;br /&gt;NUMBERING:&lt;br /&gt;&lt;br /&gt; # number each line of a file (simple left alignment). Using a tab (see&lt;br /&gt; # note on '\t' at end of file) instead of space will preserve margins.&lt;br /&gt; sed = filename | sed 'N;s/\n/\t/'&lt;br /&gt;&lt;br /&gt; # number each line of a file (number on left, right-aligned)&lt;br /&gt; sed = filename | sed 'N; s/^/     /; s/ *\(.\{6,\}\)\n/\1  /'&lt;br /&gt;&lt;br /&gt; # number each line of file, but only print numbers if line is not blank&lt;br /&gt; sed '/./=' filename | sed '/./N; s/\n/ /'&lt;br /&gt;&lt;br /&gt; # count lines (emulates "wc -l")&lt;br /&gt; sed -n '$='&lt;br /&gt;&lt;br /&gt;TEXT CONVERSION AND SUBSTITUTION:&lt;br /&gt;&lt;br /&gt; # IN UNIX ENVIRONMENT: convert DOS newlines (CR/LF) to Unix format&lt;br /&gt; sed 's/.$//'               # assumes that all lines end with CR/LF&lt;br /&gt; sed 's/^M$//'              # in bash/tcsh, press Ctrl-V then Ctrl-M&lt;br /&gt; sed 's/\x0D$//'            # gsed 3.02.80, but top script is easier&lt;br /&gt;&lt;br /&gt; # IN UNIX ENVIRONMENT: convert Unix newlines (LF) to DOS format&lt;br /&gt; sed "s/$/`echo -e \\\r`/"            # command line under ksh&lt;br /&gt; sed 's/$'"/`echo \\\r`/"             # command line under bash&lt;br /&gt; sed "s/$/`echo \\\r`/"               # command line under zsh&lt;br /&gt; sed 's/$/\r/'                        # gsed 3.02.80&lt;br /&gt;&lt;br /&gt; # IN DOS ENVIRONMENT: convert Unix newlines (LF) to DOS format&lt;br /&gt; sed "s/$//"                          # method 1&lt;br /&gt; sed -n p                             # method 2&lt;br /&gt;&lt;br /&gt; # IN DOS ENVIRONMENT: convert DOS newlines (CR/LF) to Unix format&lt;br /&gt; # Can only be done with UnxUtils sed, version 4.0.7 or higher.&lt;br /&gt; # Cannot be done with other DOS versions of sed. Use "tr" instead.&lt;br /&gt; sed "s/\r//" infile &gt;outfile         # UnxUtils sed v4.0.7 or higher&lt;br /&gt; tr -d \r &lt;infile &gt;outfile            # GNU tr version 1.22 or higher&lt;br /&gt;&lt;br /&gt; # delete leading whitespace (spaces, tabs) from front of each line&lt;br /&gt; # aligns all text flush left&lt;br /&gt; sed 's/^[ \t]*//'                    # see note on '\t' at end of file&lt;br /&gt;&lt;br /&gt; # delete trailing whitespace (spaces, tabs) from end of each line&lt;br /&gt; sed 's/[ \t]*$//'                    # see note on '\t' at end of file&lt;br /&gt;&lt;br /&gt; # delete BOTH leading and trailing whitespace from each line&lt;br /&gt; sed 's/^[ \t]*//;s/[ \t]*$//'&lt;br /&gt;&lt;br /&gt; # insert 5 blank spaces at beginning of each line (make page offset)&lt;br /&gt; sed 's/^/     /'&lt;br /&gt;&lt;br /&gt; # align all text flush right on a 79-column width&lt;br /&gt; sed -e :a -e 's/^.\{1,78\}$/ &amp;/;ta'  # set at 78 plus 1 space&lt;br /&gt;&lt;br /&gt; # center all text in the middle of 79-column width. In method 1,&lt;br /&gt; # spaces at the beginning of the line are significant, and trailing&lt;br /&gt; # spaces are appended at the end of the line. In method 2, spaces at&lt;br /&gt; # the beginning of the line are discarded in centering the line, and&lt;br /&gt; # no trailing spaces appear at the end of lines.&lt;br /&gt; sed  -e :a -e 's/^.\{1,77\}$/ &amp; /;ta'                     # method 1&lt;br /&gt; sed  -e :a -e 's/^.\{1,77\}$/ &amp;/;ta' -e 's/\( *\)\1/\1/'  # method 2&lt;br /&gt;&lt;br /&gt; # substitute (find and replace) "foo" with "bar" on each line&lt;br /&gt; sed 's/foo/bar/'             # replaces only 1st instance in a line&lt;br /&gt; sed 's/foo/bar/4'            # replaces only 4th instance in a line&lt;br /&gt; sed 's/foo/bar/g'            # replaces ALL instances in a line&lt;br /&gt; sed 's/\(.*\)foo\(.*foo\)/\1bar\2/' # replace the next-to-last case&lt;br /&gt; sed 's/\(.*\)foo/\1bar/'            # replace only the last case&lt;br /&gt;&lt;br /&gt; # substitute "foo" with "bar" ONLY for lines which contain "baz"&lt;br /&gt; sed '/baz/s/foo/bar/g'&lt;br /&gt;&lt;br /&gt; # substitute "foo" with "bar" EXCEPT for lines which contain "baz"&lt;br /&gt; sed '/baz/!s/foo/bar/g'&lt;br /&gt;&lt;br /&gt; # change "scarlet" or "ruby" or "puce" to "red"&lt;br /&gt; sed 's/scarlet/red/g;s/ruby/red/g;s/puce/red/g'   # most seds&lt;br /&gt; gsed 's/scarlet\|ruby\|puce/red/g'                # GNU sed only&lt;br /&gt;&lt;br /&gt; # reverse order of lines (emulates "tac")&lt;br /&gt; # bug/feature in HHsed v1.5 causes blank lines to be deleted&lt;br /&gt; sed '1!G;h;$!d'               # method 1&lt;br /&gt; sed -n '1!G;h;$p'             # method 2&lt;br /&gt;&lt;br /&gt; # reverse each character on the line (emulates "rev")&lt;br /&gt; sed '/\n/!G;s/\(.\)\(.*\n\)/&amp;\2\1/;//D;s/.//'&lt;br /&gt;&lt;br /&gt; # join pairs of lines side-by-side (like "paste")&lt;br /&gt; sed '$!N;s/\n/ /'&lt;br /&gt;&lt;br /&gt; # if a line ends with a backslash, append the next line to it&lt;br /&gt; sed -e :a -e '/\\$/N; s/\\\n//; ta'&lt;br /&gt;&lt;br /&gt; # if a line begins with an equal sign, append it to the previous line&lt;br /&gt; # and replace the "=" with a single space&lt;br /&gt; sed -e :a -e '$!N;s/\n=/ /;ta' -e 'P;D'&lt;br /&gt;&lt;br /&gt; # add commas to numeric strings, changing "1234567" to "1,234,567"&lt;br /&gt; gsed ':a;s/\B[0-9]\{3\}\&gt;/,&amp;/;ta'                     # GNU sed&lt;br /&gt; sed -e :a -e 's/\(.*[0-9]\)\([0-9]\{3\}\)/\1,\2/;ta'  # other seds&lt;br /&gt;&lt;br /&gt; # add commas to numbers with decimal points and minus signs (GNU sed)&lt;br /&gt; gsed ':a;s/\(^\|[^0-9.]\)\([0-9]\+\)\([0-9]\{3\}\)/\1\2,\3/g;ta'&lt;br /&gt;&lt;br /&gt; # add a blank line every 5 lines (after lines 5, 10, 15, 20, etc.)&lt;br /&gt; gsed '0~5G'                  # GNU sed only&lt;br /&gt; sed 'n;n;n;n;G;'             # other seds&lt;br /&gt;&lt;br /&gt;SELECTIVE PRINTING OF CERTAIN LINES:&lt;br /&gt;&lt;br /&gt; # print first 10 lines of file (emulates behavior of "head")&lt;br /&gt; sed 10q&lt;br /&gt;&lt;br /&gt; # print first line of file (emulates "head -1")&lt;br /&gt; sed q&lt;br /&gt;&lt;br /&gt; # print the last 10 lines of a file (emulates "tail")&lt;br /&gt; sed -e :a -e '$q;N;11,$D;ba'&lt;br /&gt;&lt;br /&gt; # print the last 2 lines of a file (emulates "tail -2")&lt;br /&gt; sed '$!N;$!D'&lt;br /&gt;&lt;br /&gt; # print the last line of a file (emulates "tail -1")&lt;br /&gt; sed '$!d'                    # method 1&lt;br /&gt; sed -n '$p'                  # method 2&lt;br /&gt;&lt;br /&gt; # print only lines which match regular expression (emulates "grep")&lt;br /&gt; sed -n '/regexp/p'           # method 1&lt;br /&gt; sed '/regexp/!d'             # method 2&lt;br /&gt;&lt;br /&gt; # print only lines which do NOT match regexp (emulates "grep -v")&lt;br /&gt; sed -n '/regexp/!p'          # method 1, corresponds to above&lt;br /&gt; sed '/regexp/d'              # method 2, simpler syntax&lt;br /&gt;&lt;br /&gt; # print the line immediately before a regexp, but not the line&lt;br /&gt; # containing the regexp&lt;br /&gt; sed -n '/regexp/{g;1!p;};h'&lt;br /&gt;&lt;br /&gt; # print the line immediately after a regexp, but not the line&lt;br /&gt; # containing the regexp&lt;br /&gt; sed -n '/regexp/{n;p;}'&lt;br /&gt;&lt;br /&gt; # print 1 line of context before and after regexp, with line number&lt;br /&gt; # indicating where the regexp occurred (similar to "grep -A1 -B1")&lt;br /&gt; sed -n -e '/regexp/{=;x;1!p;g;$!N;p;D;}' -e h&lt;br /&gt;&lt;br /&gt; # grep for AAA and BBB and CCC (in any order)&lt;br /&gt; sed '/AAA/!d; /BBB/!d; /CCC/!d'&lt;br /&gt;&lt;br /&gt; # grep for AAA and BBB and CCC (in that order)&lt;br /&gt; sed '/AAA.*BBB.*CCC/!d'&lt;br /&gt;&lt;br /&gt; # grep for AAA or BBB or CCC (emulates "egrep")&lt;br /&gt; sed -e '/AAA/b' -e '/BBB/b' -e '/CCC/b' -e d    # most seds&lt;br /&gt; gsed '/AAA\|BBB\|CCC/!d'                        # GNU sed only&lt;br /&gt;&lt;br /&gt; # print paragraph if it contains AAA (blank lines separate paragraphs)&lt;br /&gt; # HHsed v1.5 must insert a 'G;' after 'x;' in the next 3 scripts below&lt;br /&gt; sed -e '/./{H;$!d;}' -e 'x;/AAA/!d;'&lt;br /&gt;&lt;br /&gt; # print paragraph if it contains AAA and BBB and CCC (in any order)&lt;br /&gt; sed -e '/./{H;$!d;}' -e 'x;/AAA/!d;/BBB/!d;/CCC/!d'&lt;br /&gt;&lt;br /&gt; # print paragraph if it contains AAA or BBB or CCC&lt;br /&gt; sed -e '/./{H;$!d;}' -e 'x;/AAA/b' -e '/BBB/b' -e '/CCC/b' -e d&lt;br /&gt; gsed '/./{H;$!d;};x;/AAA\|BBB\|CCC/b;d'         # GNU sed only&lt;br /&gt;&lt;br /&gt; # print only lines of 65 characters or longer&lt;br /&gt; sed -n '/^.\{65\}/p'&lt;br /&gt;&lt;br /&gt; # print only lines of less than 65 characters&lt;br /&gt; sed -n '/^.\{65\}/!p'        # method 1, corresponds to above&lt;br /&gt; sed '/^.\{65\}/d'            # method 2, simpler syntax&lt;br /&gt;&lt;br /&gt; # print section of file from regular expression to end of file&lt;br /&gt; sed -n '/regexp/,$p'&lt;br /&gt;&lt;br /&gt; # print section of file based on line numbers (lines 8-12, inclusive)&lt;br /&gt; sed -n '8,12p'               # method 1&lt;br /&gt; sed '8,12!d'                 # method 2&lt;br /&gt;&lt;br /&gt; # print line number 52&lt;br /&gt; sed -n '52p'                 # method 1&lt;br /&gt; sed '52!d'                   # method 2&lt;br /&gt; sed '52q;d'                  # method 3, efficient on large files&lt;br /&gt;&lt;br /&gt; # beginning at line 3, print every 7th line&lt;br /&gt; gsed -n '3~7p'               # GNU sed only&lt;br /&gt; sed -n '3,${p;n;n;n;n;n;n;}' # other seds&lt;br /&gt;&lt;br /&gt; # print section of file between two regular expressions (inclusive)&lt;br /&gt; sed -n '/Iowa/,/Montana/p'             # case sensitive&lt;br /&gt;&lt;br /&gt;SELECTIVE DELETION OF CERTAIN LINES:&lt;br /&gt;&lt;br /&gt; # print all of file EXCEPT section between 2 regular expressions&lt;br /&gt; sed '/Iowa/,/Montana/d'&lt;br /&gt;&lt;br /&gt; # delete duplicate, consecutive lines from a file (emulates "uniq").&lt;br /&gt; # First line in a set of duplicate lines is kept, rest are deleted.&lt;br /&gt; sed '$!N; /^\(.*\)\n\1$/!P; D'&lt;br /&gt;&lt;br /&gt; # delete duplicate, nonconsecutive lines from a file. Beware not to&lt;br /&gt; # overflow the buffer size of the hold space, or else use GNU sed.&lt;br /&gt; sed -n 'G; s/\n/&amp;&amp;/; /^\([ -~]*\n\).*\n\1/d; s/\n//; h; P'&lt;br /&gt;&lt;br /&gt; # delete all lines except duplicate lines (emulates "uniq -d").&lt;br /&gt; sed '$!N; s/^\(.*\)\n\1$/\1/; t; D'&lt;br /&gt;&lt;br /&gt; # delete the first 10 lines of a file&lt;br /&gt; sed '1,10d'&lt;br /&gt;&lt;br /&gt; # delete the last line of a file&lt;br /&gt; sed '$d'&lt;br /&gt;&lt;br /&gt; # delete the last 2 lines of a file&lt;br /&gt; sed 'N;$!P;$!D;$d'&lt;br /&gt;&lt;br /&gt; # delete the last 10 lines of a file&lt;br /&gt; sed -e :a -e '$d;N;2,10ba' -e 'P;D'   # method 1&lt;br /&gt; sed -n -e :a -e '1,10!{P;N;D;};N;ba'  # method 2&lt;br /&gt;&lt;br /&gt; # delete every 8th line&lt;br /&gt; gsed '0~8d'                           # GNU sed only&lt;br /&gt; sed 'n;n;n;n;n;n;n;d;'                # other seds&lt;br /&gt;&lt;br /&gt; # delete ALL blank lines from a file (same as "grep '.' ")&lt;br /&gt; sed '/^$/d'                           # method 1&lt;br /&gt; sed '/./!d'                           # method 2&lt;br /&gt;&lt;br /&gt; # delete all CONSECUTIVE blank lines from file except the first; also&lt;br /&gt; # deletes all blank lines from top and end of file (emulates "cat -s")&lt;br /&gt; sed '/./,/^$/!d'          # method 1, allows 0 blanks at top, 1 at EOF&lt;br /&gt; sed '/^$/N;/\n$/D'        # method 2, allows 1 blank at top, 0 at EOF&lt;br /&gt;&lt;br /&gt; # delete all CONSECUTIVE blank lines from file except the first 2:&lt;br /&gt; sed '/^$/N;/\n$/N;//D'&lt;br /&gt;&lt;br /&gt; # delete all leading blank lines at top of file&lt;br /&gt; sed '/./,$!d'&lt;br /&gt;&lt;br /&gt; # delete all trailing blank lines at end of file&lt;br /&gt; sed -e :a -e '/^\n*$/{$d;N;ba' -e '}'  # works on all seds&lt;br /&gt; sed -e :a -e '/^\n*$/N;/\n$/ba'        # ditto, except for gsed 3.02*&lt;br /&gt;&lt;br /&gt; # delete the last line of each paragraph&lt;br /&gt; sed -n '/^$/{p;h;};/./{x;/./p;}'&lt;br /&gt;&lt;br /&gt;SPECIAL APPLICATIONS:&lt;br /&gt;&lt;br /&gt; # remove nroff overstrikes (char, backspace) from man pages. The 'echo'&lt;br /&gt; # command may need an -e switch if you use Unix System V or bash shell.&lt;br /&gt; sed "s/.`echo \\\b`//g"    # double quotes required for Unix environment&lt;br /&gt; sed 's/.^H//g'             # in bash/tcsh, press Ctrl-V and then Ctrl-H&lt;br /&gt; sed 's/.\x08//g'           # hex expression for sed v1.5&lt;br /&gt;&lt;br /&gt; # get Usenet/e-mail message header&lt;br /&gt; sed '/^$/q'                # deletes everything after first blank line&lt;br /&gt;&lt;br /&gt; # get Usenet/e-mail message body&lt;br /&gt; sed '1,/^$/d'              # deletes everything up to first blank line&lt;br /&gt;&lt;br /&gt; # get Subject header, but remove initial "Subject: " portion&lt;br /&gt; sed '/^Subject: */!d; s///;q'&lt;br /&gt;&lt;br /&gt; # get return address header&lt;br /&gt; sed '/^Reply-To:/q; /^From:/h; /./d;g;q'&lt;br /&gt;&lt;br /&gt; # parse out the address proper. Pulls out the e-mail address by itself&lt;br /&gt; # from the 1-line return address header (see preceding script)&lt;br /&gt; sed 's/ *(.*)//; s/&gt;.*//; s/.*[:&lt;] *//'&lt;br /&gt;&lt;br /&gt; # add a leading angle bracket and space to each line (quote a message)&lt;br /&gt; sed 's/^/&gt; /'&lt;br /&gt;&lt;br /&gt; # delete leading angle bracket &amp; space from each line (unquote a message)&lt;br /&gt; sed 's/^&gt; //'&lt;br /&gt;&lt;br /&gt; # remove most HTML tags (accommodates multiple-line tags)&lt;br /&gt; sed -e :a -e 's/&lt;[^&gt;]*&gt;//g;/&lt;/N;//ba'&lt;br /&gt;&lt;br /&gt; # extract multi-part uuencoded binaries, removing extraneous header&lt;br /&gt; # info, so that only the uuencoded portion remains. Files passed to&lt;br /&gt; # sed must be passed in the proper order. Version 1 can be entered&lt;br /&gt; # from the command line; version 2 can be made into an executable&lt;br /&gt; # Unix shell script. (Modified from a script by Rahul Dhesi.)&lt;br /&gt; sed '/^end/,/^begin/d' file1 file2 ... fileX | uudecode   # vers. 1&lt;br /&gt; sed '/^end/,/^begin/d' "$@" | uudecode                    # vers. 2&lt;br /&gt;&lt;br /&gt; # zip up each .TXT file individually, deleting the source file and&lt;br /&gt; # setting the name of each .ZIP file to the basename of the .TXT file&lt;br /&gt; # (under DOS: the "dir /b" switch returns bare filenames in all caps).&lt;br /&gt; echo @echo off &gt;zipup.bat&lt;br /&gt; dir /b *.txt | sed "s/^\(.*\)\.TXT/pkzip -mo \1 \1.TXT/" &gt;&gt;zipup.bat&lt;br /&gt;&lt;br /&gt;TYPICAL USE: Sed takes one or more editing commands and applies all of&lt;br /&gt;them, in sequence, to each line of input. After all the commands have&lt;br /&gt;been applied to the first input line, that line is output and a second&lt;br /&gt;input line is taken for processing, and the cycle repeats. The&lt;br /&gt;preceding examples assume that input comes from the standard input&lt;br /&gt;device (i.e, the console, normally this will be piped input). One or&lt;br /&gt;more filenames can be appended to the command line if the input does&lt;br /&gt;not come from stdin. Output is sent to stdout (the screen). Thus:&lt;br /&gt;&lt;br /&gt; cat filename | sed '10q'        # uses piped input&lt;br /&gt; sed '10q' filename              # same effect, avoids a useless "cat"&lt;br /&gt; sed '10q' filename &gt; newfile    # redirects output to disk&lt;br /&gt;&lt;br /&gt;For additional syntax instructions, including the way to apply editing&lt;br /&gt;commands from a disk file instead of the command line, consult "sed &amp;&lt;br /&gt;awk, 2nd Edition," by Dale Dougherty and Arnold Robbins (O'Reilly,&lt;br /&gt;1997; http://www.ora.com), "UNIX Text Processing," by Dale Dougherty&lt;br /&gt;and Tim O'Reilly (Hayden Books, 1987) or the tutorials by Mike Arst&lt;br /&gt;distributed in U-SEDIT2.ZIP (many sites). To fully exploit the power&lt;br /&gt;of sed, one must understand "regular expressions." For this, see&lt;br /&gt;"Mastering Regular Expressions" by Jeffrey Friedl (O'Reilly, 1997).&lt;br /&gt;The manual ("man") pages on Unix systems may be helpful (try "man&lt;br /&gt;sed", "man regexp", or the subsection on regular expressions in "man&lt;br /&gt;ed"), but man pages are notoriously difficult. They are not written to&lt;br /&gt;teach sed use or regexps to first-time users, but as a reference text&lt;br /&gt;for those already acquainted with these tools.&lt;br /&gt;&lt;br /&gt;QUOTING SYNTAX: The preceding examples use single quotes ('...')&lt;br /&gt;instead of double quotes ("...") to enclose editing commands, since&lt;br /&gt;sed is typically used on a Unix platform. Single quotes prevent the&lt;br /&gt;Unix shell from intrepreting the dollar sign ($) and backquotes&lt;br /&gt;(`...`), which are expanded by the shell if they are enclosed in&lt;br /&gt;double quotes. Users of the "csh" shell and derivatives will also need&lt;br /&gt;to quote the exclamation mark (!) with the backslash (i.e., \!) to&lt;br /&gt;properly run the examples listed above, even within single quotes.&lt;br /&gt;Versions of sed written for DOS invariably require double quotes&lt;br /&gt;("...") instead of single quotes to enclose editing commands.&lt;br /&gt;&lt;br /&gt;USE OF '\t' IN SED SCRIPTS: For clarity in documentation, we have used&lt;br /&gt;the expression '\t' to indicate a tab character (0x09) in the scripts.&lt;br /&gt;However, most versions of sed do not recognize the '\t' abbreviation,&lt;br /&gt;so when typing these scripts from the command line, you should press&lt;br /&gt;the TAB key instead. '\t' is supported as a regular expression&lt;br /&gt;metacharacter in awk, perl, and HHsed, sedmod, and GNU sed v3.02.80.&lt;br /&gt;&lt;br /&gt;VERSIONS OF SED: Versions of sed do differ, and some slight syntax&lt;br /&gt;variation is to be expected. In particular, most do not support the&lt;br /&gt;use of labels (:name) or branch instructions (b,t) within editing&lt;br /&gt;commands, except at the end of those commands. We have used the syntax&lt;br /&gt;which will be portable to most users of sed, even though the popular&lt;br /&gt;GNU versions of sed allow a more succinct syntax. When the reader sees&lt;br /&gt;a fairly long command such as this:&lt;br /&gt;&lt;br /&gt;   sed -e '/AAA/b' -e '/BBB/b' -e '/CCC/b' -e d&lt;br /&gt;&lt;br /&gt;it is heartening to know that GNU sed will let you reduce it to:&lt;br /&gt;&lt;br /&gt;   sed '/AAA/b;/BBB/b;/CCC/b;d'      # or even&lt;br /&gt;   sed '/AAA\|BBB\|CCC/b;d'&lt;br /&gt;&lt;br /&gt;In addition, remember that while many versions of sed accept a command&lt;br /&gt;like "/one/ s/RE1/RE2/", some do NOT allow "/one/! s/RE1/RE2/", which&lt;br /&gt;contains space before the 's'. Omit the space when typing the command.&lt;br /&gt;&lt;br /&gt;OPTIMIZING FOR SPEED: If execution speed needs to be increased (due to&lt;br /&gt;large input files or slow processors or hard disks), substitution will&lt;br /&gt;be executed more quickly if the "find" expression is specified before&lt;br /&gt;giving the "s/.../.../" instruction. Thus:&lt;br /&gt;&lt;br /&gt;   sed 's/foo/bar/g' filename         # standard replace command&lt;br /&gt;   sed '/foo/ s/foo/bar/g' filename   # executes more quickly&lt;br /&gt;   sed '/foo/ s//bar/g' filename      # shorthand sed syntax&lt;br /&gt;&lt;br /&gt;On line selection or deletion in which you only need to output lines&lt;br /&gt;from the first part of the file, a "quit" command (q) in the script&lt;br /&gt;will drastically reduce processing time for large files. Thus:&lt;br /&gt;&lt;br /&gt;   sed -n '45,50p' filename           # print line nos. 45-50 of a file&lt;br /&gt;   sed -n '51q;45,50p' filename       # same, but executes much faster&lt;br /&gt;&lt;br /&gt;If you have any additional scripts to contribute or if you find errors&lt;br /&gt;in this document, please send e-mail to the compiler. Indicate the&lt;br /&gt;version of sed you used, the operating system it was compiled for, and&lt;br /&gt;the nature of the problem. Various scripts in this file were written&lt;br /&gt;or contributed by:&lt;br /&gt;&lt;br /&gt; Al Aab &lt;af137@freenet.toronto.on.ca&gt;   # "seders" list moderator&lt;br /&gt; Edgar Allen &lt;era@sky.net&gt;              # various&lt;br /&gt; Yiorgos Adamopoulos &lt;adamo@softlab.ece.ntua.gr&gt;&lt;br /&gt; Dale Dougherty &lt;dale@songline.com&gt;     # author of "sed &amp; awk"&lt;br /&gt; Carlos Duarte &lt;cdua@algos.inesc.pt&gt;    # author of "do it with sed"&lt;br /&gt; Eric Pement &lt;pemente@northpark.edu&gt;    # author of this document&lt;br /&gt; Ken Pizzini &lt;ken@halcyon.com&gt;          # author of GNU sed v3.02&lt;br /&gt; S.G. Ravenhall &lt;stew.ravenhall@totalise.co.uk&gt; # great de-html script&lt;br /&gt; Greg Ubben &lt;gsu@romulus.ncsc.mil&gt;      # many contributions &amp; much help&lt;br /&gt;-------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-115260943586796214?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/115260943586796214/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=115260943586796214' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/115260943586796214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/115260943586796214'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2006/07/handy-one-liners-for-sed-unix-stream.html' title='sed handy hints'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-114923437319604090</id><published>2006-06-02T07:43:00.000Z</published><updated>2006-06-02T08:02:49.753Z</updated><title type='text'>how to send html mime mail from linux command line</title><content type='html'>&lt;span style="font-family:arial;"&gt;simply put something like this in a plain file:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: right;"&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt;MIME-Version: 1.0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt;Content-type: text/html; charset=iso-8859-1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt;subject: test&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;#60;html&gt;&lt;br /&gt;&amp;#60;b&gt;hello world!&amp;#60;/b&gt;&lt;br /&gt;&amp;#60;/html&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;b&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;and then do this:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;cat filename | sendmail -v recipient@email.com&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-114923437319604090?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/114923437319604090/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=114923437319604090' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/114923437319604090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/114923437319604090'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2006/06/how-to-send-html-mime-mail-from-linux.html' title='how to send html mime mail from linux command line'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-114556697177773933</id><published>2006-04-20T21:02:00.001Z</published><updated>2008-02-16T12:46:08.046Z</updated><title type='text'>some mysql I want to remember</title><content type='html'>SELECT count( * )&lt;br /&gt;FROM `queue`&lt;br /&gt;WHERE timestamp &lt; '2006-04-30'&lt;br /&gt;AND timestamp &gt; '2006-04-01'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-114556697177773933?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/114556697177773933/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=114556697177773933' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/114556697177773933'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/114556697177773933'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2006/04/select-count-from-queue-where.html' title='some mysql I want to remember'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-113656205369729876</id><published>2006-01-06T15:17:00.000Z</published><updated>2006-01-06T15:48:02.043Z</updated><title type='text'></title><content type='html'>&lt;h2&gt;&lt;a name="uuencode"&gt;File attachments with "uuencode"&lt;/a&gt;&lt;/h2&gt;  Sending binary files does not work well for the Internet. We could send a binary file "surfing.jpeg" using this command:  &lt;blockquote&gt;   &lt;code&gt;mail -s "picture of me surfing" sylvia@home.com &lt;&gt; &lt;/code&gt;&lt;/blockquote&gt;  but chances are high that the image will be unusable the time it arrives at the recipient.  &lt;p&gt;During mail delivery the mail is relayed from one mail delivery agent to the next, until it finally arrives at the recipient. Each delivery agent may transform the mail message, e.g. by stripping the 8th bit of each character, removing NUL bytes (ASCII code 0), converting the end-of-line character LF ("line-feed", ASCII code 12) to a local representation (e.g. CR LF), or removing trailing space or TAB characters from each line.  &lt;/p&gt;&lt;p&gt;Since only some characters are sure to arrive unmodified, the traditional solution is to encode the mail from binary format to a text format that is safe to transmit. The program used for this is called "&lt;code&gt;uuencode&lt;/code&gt;" ("UNIX to UNIX encoding"), the program to decode the data is called "&lt;code&gt;uudecode&lt;/code&gt;".  &lt;/p&gt;&lt;p&gt;The simplest way to send a file as a mail attachment is shown by the following example:  &lt;/p&gt;&lt;blockquote&gt;   &lt;table border="1" cellpadding="10"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td bgcolor="#efefef"&gt;     $ uuencode surfing.jpeg surfing.jpeg | mail sylvia@home.com   &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/blockquote&gt;  &lt;p&gt;That's all! If Sylvia uses a current mail reader like Mozilla, Netscape Messenger or Microsoft Exchange, she will see a mail containing just one file attachment: the file "surfing.jpeg". In the command above we had to specify the file name two times: the first name denotes the input file to be encoded, and the second name is the file name the recipient will see.  &lt;/p&gt;&lt;p&gt;This way we can include normal text, too:  &lt;/p&gt;&lt;blockquote&gt;   &lt;table border="1" cellpadding="10"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td bgcolor="#efefef"&gt;     $ (cat mailtext; uuencode surfing.jpeg surfing.jpeg) |&lt;br /&gt;     mail sylvia@home.com   &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;    &lt;p&gt;Note: The file name "surfing.jpeg" again appears twice on   the &lt;code&gt;uuencode&lt;/code&gt; command line: the first time to   specify the input file name, the second time for the remote   extraction file name.  &lt;/p&gt;&lt;/blockquote&gt;  &lt;p&gt;The first "&lt;code&gt;cat&lt;/code&gt;" will prepend the contents of the file "&lt;code&gt;mailtext&lt;/code&gt;" to the "uuencode"ed data of the image "&lt;code&gt;surfing.jpeg&lt;/code&gt;". Both commands are executed within a sub shell, to combine the output of both commands to one output stream redirected to the "mail" command.  &lt;/p&gt;&lt;p&gt;This method of sending file attachments works fairly well, but still has some shortcomings:  &lt;/p&gt;&lt;ul&gt;&lt;!-- "Each mail can only contain one file attachment": this is     not correct, because (uuencode ...; uuencode ...;) | mail     can be used to create more than one (thanks to Steve Shuman     &lt;sshuman&gt; for pointing this out).   --&gt;&lt;li&gt;Many user agents cannot directly decode this kind of file     attachments, e.g. "Eudora". Some mail agents explicitly     require the decoding of the mail using the program     "uudecode"   &lt;/li&gt;&lt;li&gt;The "uuencode" encoding is not standardized. Text encoded on one system     may not be decoded correctly by the recipient's system   &lt;var&gt;[the content of the mail message was saved to&lt;br /&gt; the file "mail.uue"]&lt;/var&gt;&lt;br /&gt; $ uudecode mail.uue&lt;br /&gt; &lt;var&gt;The file "surfing.jpeg" was written to the current directory&lt;/var&gt;  &lt;/li&gt;&lt;/ul&gt;  &lt;p&gt;The next method does not have this disadvantages. It works with most (newer) mail user agents and uses the "&lt;em&gt;&lt;dfn&gt;Multipurpose Internet Mail Extensions&lt;/dfn&gt;&lt;/em&gt;" (MIME).  &lt;/p&gt;&lt;p&gt;&lt;a href="http://www.shelldorado.com/articles/mailattachments.html#top"&gt;Top of document&lt;/a&gt;   &lt;/p&gt;&lt;hr /&gt; &lt;!-- =============================================================== --&gt;  &lt;h2&gt;&lt;a name="mime"&gt;File attachments with MIME&lt;/a&gt;&lt;/h2&gt;  The MIME Standard ("Multipurpose Internet Mail Extensions") defines an impressive list of new features for e-mail messages, e.g.  &lt;ul&gt;&lt;li&gt;arbitrary file attachments, e.g. images, audio files   &lt;/li&gt;&lt;li&gt;more than one file attachment per mail   &lt;/li&gt;&lt;li&gt;multi-part messages &lt;/li&gt;&lt;/ul&gt;  &lt;p&gt;Other features are non-ASCII character sets for message bodies and message headers.  &lt;/p&gt;&lt;p&gt;But how can shell programmers use these features effectively?  &lt;/p&gt;&lt;p&gt;At first there has to be a command-line driven program to send MIME mails.  There are some MIME packages available free of charge, the most common being  &lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;em&gt;mutt&lt;/em&gt; written by Michael Elkins     (&lt;a href="http://www.mutt.org/"&gt;http://www.mutt.org&lt;/a&gt;)    &lt;/li&gt;&lt;li&gt;&lt;em&gt;MetaMail&lt;/em&gt; by Nathaniel S.Borenstein     (&lt;a href="ftp://ftp.research.telcordia.com/pub/nsb/"&gt;ftp://ftp.research.telcordia.com/pub/nsb/&lt;/a&gt;)    &lt;/li&gt;&lt;li&gt;&lt;em&gt;mpack&lt;/em&gt; by John G. Myers     (&lt;a href="ftp://ftp.andrew.cmu.edu/pub/mpack/"&gt;ftp://ftp.andrew.cmu.edu:/pub/mpack/&lt;/a&gt;)  &lt;/li&gt;&lt;/ul&gt;  &lt;p&gt;But check your local system before downloading one of these packages, many UNIX systems (e.g. Linux) come with one or more of them pre-installed.  &lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;cite&gt;&lt;a href="http://www.shelldorado.com/articles/mailattachments.html#mutturl"&gt;mutt&lt;/a&gt;&lt;/cite&gt;&lt;/strong&gt; is an interactive, text-oriented e-mail client. Not very useful for usage in a script, one might think. But on closer view the program turns out to provide an easy way to send e-mails with file attachments. Have a look at the following example:  &lt;/p&gt;&lt;blockquote&gt;   &lt;table border="1" cellpadding="10"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td bgcolor="#efefef"&gt;     $ mutt -s "Birthday celebration" -a citymap.jpg all@friends.org         &lt;&gt;   &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/blockquote&gt;  This command shows how to specify four important parts of an e-mail:  &lt;ul&gt;&lt;li&gt;The recipient ("all@friends.org")   &lt;/li&gt;&lt;li&gt;The main body of the e-mail (read from standard input,     here redirected from the file "invitation.txt")   &lt;/li&gt;&lt;li&gt;An attachment (with option &lt;code&gt;-a&lt;/code&gt;)   &lt;/li&gt;&lt;li&gt;A subject line (option &lt;code&gt;-s&lt;/code&gt;) &lt;/li&gt;&lt;/ul&gt;  The interesting part is the option &lt;strong&gt;&lt;code&gt;-a&lt;/code&gt;&lt;/strong&gt;, which allows us to send an attachment (in this case a picture of a city map). We could have added more attachments by using multiple &lt;code&gt;-a&lt;/code&gt; options.  &lt;p&gt;&lt;em&gt;mutt&lt;/em&gt; always reads a text from standard input that will become the main body of the e-mail, the text before the attachment. If the mail should consist of attachments only, we can either specify &lt;code&gt;/dev/null&lt;/code&gt; as the file to read, e.g.  &lt;/p&gt;&lt;blockquote&gt;   &lt;table border="1" cellpadding="10"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td bgcolor="#efefef"&gt;     $ mutt -a syslogs.tar.gz admin@domain.org &lt; /dev/null   &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/blockquote&gt;  or use an empty line as the mail body:  &lt;blockquote&gt;   &lt;table border="1" cellpadding="10"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td bgcolor="#efefef"&gt;     $ echo | mutt -a syslogs.tar.gz admin@domain.org   &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/blockquote&gt;  &lt;em&gt;mutt&lt;/em&gt; does some work behind the scenes, e.g. it's looking at the file extensions of the attachments, and selects an appropriate MIME type for each. This works reasonably well (depending on the configuration of the system in general and &lt;em&gt;mutt&lt;/em&gt; in particular), but if more control about MIME types and the sending of the e-mail is required, the next package may be more appropriate.  &lt;p&gt;The remainder of this chapter will use programs of the &lt;em&gt;MetaMail&lt;/em&gt; package for the examples. Don't worry if the command lines seem somewhat cryptic, at the end of this article we will present a script simplifying the sending of mail attachments.  &lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;MetaMail&lt;/em&gt;&lt;/strong&gt; provides two programs to send mail: &lt;code&gt;mailto&lt;/code&gt; and &lt;code&gt;metasend&lt;/code&gt;. We will use the second one for scripting, because it can be used non-interactively. The most interesting command line arguments of &lt;code&gt;metasend&lt;/code&gt; are listed in the following table [refer to metasend(1) for a complete list].  &lt;/p&gt;&lt;blockquote&gt; &lt;table border="1"&gt;    &lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;-b&lt;/strong&gt;&lt;/td&gt;     &lt;td&gt;batch (non-interactive) mode&lt;br /&gt;&lt;/td&gt;   &lt;/tr&gt;    &lt;tr&gt;&lt;td&gt;&lt;strong&gt;-c &lt;var&gt;cc&lt;/var&gt;&lt;/strong&gt;&lt;/td&gt;     &lt;td&gt;CC address (for copy of the mail)&lt;br /&gt;&lt;/td&gt;   &lt;/tr&gt;    &lt;tr&gt;&lt;td&gt;&lt;strong&gt;-f &lt;var&gt;filename&lt;/var&gt;&lt;/strong&gt;&lt;/td&gt;     &lt;td&gt;Name of file to attach&lt;br /&gt;&lt;/td&gt;   &lt;/tr&gt;    &lt;tr&gt;&lt;td&gt;&lt;strong&gt;-m &lt;var&gt;MIME-type&lt;/var&gt;&lt;/strong&gt;&lt;/td&gt;      &lt;td&gt;MIME content type, e.g. "&lt;code&gt;text/plain&lt;/code&gt;" or     "&lt;code&gt;application/octet-stream&lt;/code&gt;"&lt;br /&gt;&lt;/td&gt;    &lt;/tr&gt;    &lt;tr&gt;&lt;td&gt;&lt;strong&gt;-s &lt;var&gt;subject&lt;/var&gt;&lt;/strong&gt;&lt;/td&gt;     &lt;td&gt;Title (subject) of the mail message&lt;br /&gt;&lt;/td&gt;   &lt;/tr&gt;    &lt;tr&gt;&lt;td&gt;&lt;strong&gt;-t &lt;var&gt;to&lt;/var&gt;&lt;/strong&gt;&lt;/td&gt;     &lt;td&gt;Recipient's address&lt;br /&gt;&lt;/td&gt;   &lt;/tr&gt;    &lt;tr&gt;&lt;td&gt;&lt;strong&gt;-n&lt;/strong&gt;&lt;/td&gt;     &lt;td&gt;Next file attachment (needed for multiple file attachments)&lt;br /&gt;&lt;/td&gt;   &lt;/tr&gt;    &lt;tr&gt;&lt;td&gt;&lt;strong&gt;-D &lt;var&gt;description&lt;/var&gt;&lt;/strong&gt;&lt;/td&gt;     &lt;td&gt;Description of the file content&lt;br /&gt;&lt;/td&gt;   &lt;/tr&gt;    &lt;tr&gt;&lt;td&gt;&lt;strong&gt;-o &lt;var&gt;outputfile&lt;/var&gt;&lt;/strong&gt;&lt;/td&gt;     &lt;td&gt;Name of an output file. If the &lt;strong&gt;-t&lt;/strong&gt; option  is given, the mail is sent directly to the addressee&lt;br /&gt;&lt;/td&gt;   &lt;/tr&gt;  &lt;/tbody&gt;&lt;/table&gt; &lt;/blockquote&gt;  &lt;p&gt;This new knowledge enables us to send an audio file using "&lt;code&gt;metasend&lt;/code&gt;":  &lt;/p&gt;&lt;blockquote&gt;   &lt;table border="1" cellpadding="10"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td bgcolor="#efefef"&gt;     $ metasend -b -t john@friends.org -s "Hear our son!"         -m audio/basic -f crying.au   &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/blockquote&gt;  &lt;p&gt;This invocation of "metasend" sends a mail to "john@friends.org" (option -t) with the subject "Hear our son!" (option -s), without prompting for further arguments (option -b). Without the "-b" argument, the command would have asked for addresses to send "carbon copies" to. The file to attach is called "crying.au", and the file type is "audio/basic".  &lt;/p&gt;&lt;p&gt;The file type (or "MIME-type") "audio/basic" gives the recipient's mail reader a hint on the contents of the file attachment. Some contents may be displayed directly (e.g. "text/plain", "image/gif"), for others the mail reader may call external programs to present the contents (e.g. "application/postscript", "audio/wav"). The relation between MIME content type and external program to call often is established using a file called "mailcap" (see mailcap(4), if available on your system). Mozilla or Netscape's Communicator allows to specify "helper applications" that are invoked depending on the MIME type.  &lt;/p&gt;&lt;p&gt;An annoying property of "metasend" is the need to specify the MIME type for each file. The script  &lt;a href="http://www.shelldorado.com/articles/mailattachments.html#scripturl"&gt;sendfile&lt;/a&gt;  simplifies this. The following example sends two files, "&lt;code&gt;cover.gif&lt;/code&gt;" and "&lt;code&gt;contents.ps&lt;/code&gt;":  &lt;/p&gt;&lt;blockquote&gt;   &lt;table border="1" cellpadding="10"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td bgcolor="#efefef"&gt;     $ sendfile editor@somewhere.com cover.gif contents.ps&lt;br /&gt; [Text to appear before the attachments, EOF to end]&lt;br /&gt; Hello John, you'll find a table of contents attached to&lt;br /&gt; this e-mail.&lt;br /&gt; ^D   &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/blockquote&gt;  &lt;p&gt;The script is easier to use because it determines the MIME type of the specified files by examining their file name extension, e.g. ".gif" or ".ps".  &lt;/p&gt;&lt;p&gt;The command used to determine the MIME type is &lt;a href="http://www.shelldorado.com/articles/mailattachments.html#scripturl"&gt;getmimetype&lt;/a&gt;.   &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-113656205369729876?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/113656205369729876/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=113656205369729876' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/113656205369729876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/113656205369729876'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2006/01/file-attachments-with-uuencode-sending.html' title=''/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-113631829321346422</id><published>2006-01-03T19:56:00.000Z</published><updated>2006-01-03T20:06:46.106Z</updated><title type='text'>Making a DIVX dvd-r</title><content type='html'>mkisofs -r -o /tmp/temp.iso ./Gadget\ Show\ 12-Dec-05.avi&lt;br /&gt;&lt;br /&gt;mount -t iso9660 -o ro,loop=/dev/loop0 /tmp/divx1.iso /tat&lt;br /&gt;&lt;br /&gt;cdrecord -format -dev=ATAPI:1,0,0&lt;br /&gt;cdrecord -v speed=10 dev=ATAPI:1,0,0 -data /tmp/temp.iso&lt;br /&gt;&lt;br /&gt;cdrecord -sao -v speed=10 dev=ATAPI:1,0,0 -data /tmp/divx1.iso&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-113631829321346422?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/113631829321346422/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=113631829321346422' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/113631829321346422'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/113631829321346422'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2006/01/making-divx-dvd-r.html' title='Making a DIVX dvd-r'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-113273354210998840</id><published>2005-11-23T08:11:00.001Z</published><updated>2008-02-16T12:47:05.023Z</updated><title type='text'>make a dvd mpeg with mencoder</title><content type='html'>To make a dvd-compliant file without re-encoding it:&lt;br /&gt;$ mencoder -mc 0.1 -of mpeg -mpegopts format=dvd -oac copy -ovc copy  -o "The Biggest Hits - Right Now.mpg"  "The Biggest Hits - Right Now.ts"&lt;br /&gt;&lt;br /&gt;to make a dvd-compliant file re-encoding the video stream (re-encoding audio doesn't make mush sense)&lt;br /&gt;this is the very tweaked command line I use (change bitrate with the value you want, in kilobit/second)&lt;br /&gt;$ mencoder -of mpeg -mpegopts format=dvd -oac copy -ovc lavc -lavcopts       qprd:keyint=25:vcodec=mpeg2vid &lt;div id="mb_1"&gt;&lt;wbr&gt;eo:mbd=2:vbitrate=$BITRATE&lt;wbr&gt;:lmin=1:mbqmin=1:vqmin=1:vqmax&lt;wbr&gt;=12:mbqmax=12:dia=-4:predia=-4&lt;wbr&gt;:preme=2:vmax_b_frames=1:sc&lt;wbr&gt;_threshold=-1500:vrc_buf_size&lt;wbr&gt;=1835:vrc_maxrate=9800:cmp=256&lt;wbr&gt;:precmp=256:subcmp=256:mbcmp&lt;wbr&gt;=256:qprd:vqcomp=0.75:subq=8 -o "The Biggest Hits - Right Now.mpg"  "The Biggest Hits - Right Now.ts"&lt;br /&gt;&lt;br /&gt;the above command encode in 1-pass with suboptimal results;&lt;br /&gt;if you want to encode in 2 passes repeat the same command twice appending :vpass=1 the first time and :vpass=2 the second time.&lt;br /&gt;&lt;br /&gt;To encode to mp4 you had better ask someone to mencoder-users.&lt;br /&gt;&lt;br /&gt;Now that you know a basic command you should read the man page and tweak the encoding process as you _really_ need&lt;br /&gt;(denoise, deinterlace, etc).&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-113273354210998840?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/113273354210998840/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=113273354210998840' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/113273354210998840'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/113273354210998840'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2005/11/to-make-dvd-compliant-file-without-re.html' title='make a dvd mpeg with mencoder'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-112288984537231848</id><published>2005-08-01T09:50:00.001Z</published><updated>2008-02-16T12:48:15.232Z</updated><title type='text'>kernel sources / sound cards</title><content type='html'>&lt;h3&gt;Installation&lt;/h3&gt;   &lt;p&gt;Install your kernel sources, in my case: &lt;/p&gt; &lt;p&gt;&lt;em&gt;rpm -ivh kernel-source-2.4.3-20mdk.i586.rpm&lt;/em&gt; &lt;/p&gt; &lt;p&gt;Then decompress alsa drivers: &lt;/p&gt; &lt;p&gt;&lt;em&gt;bzip2 -d alsa-driver-0.9.0beta10.tar.bz2 &amp;&amp;amp; tar -xvf alsa-driver-0.9.0beta10.tar&lt;/em&gt; &lt;/p&gt; &lt;p&gt;Make them and install them and create the devices files: &lt;/p&gt; &lt;p&gt;&lt;em&gt;cd alsa-driver-0.9.0beta10 &amp;&amp;amp; make install &amp;&amp;amp; ./snddevices&lt;/em&gt; &lt;/p&gt; &lt;p&gt;Edit &lt;code&gt;/etc/modules.conf&lt;/code&gt; to set everything, and add to it the following lines: &lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;blockquote&gt;&lt;code&gt; &lt;/code&gt;&lt;pre&gt;alias char-major-116 snd&lt;br /&gt;alias char-major-14 soundcore&lt;br /&gt;alias sound-slot-0 snd-card-0&lt;br /&gt;alias sound-service-0-0 snd-mixer-oss&lt;br /&gt;alias sound-service-0-1 snd-seq-oss&lt;br /&gt;alias sound-service-0-3 snd-pcm-oss&lt;br /&gt;alias sound-service-0-8 snd-seq-oss&lt;br /&gt;alias sound-service-0-12 snd-pcm-oss&lt;br /&gt;alias snd-card-0 snd-card-intel8x0&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;  warning: Christian Cardinale rf.libertysurf@elanidrac.naitsirhc reports that he had to change 'snd-card-intel8x0' for 'snd-intel8x0', which corresponds to what I have for my Debian system, I no longer remember, but I think this one is the mandrake name, if it doesn't work, just use to the other, ok?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-112288984537231848?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/112288984537231848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=112288984537231848' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/112288984537231848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/112288984537231848'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2005/08/installation-install-your-kernel.html' title='kernel sources / sound cards'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-110872561731528936</id><published>2005-02-18T11:19:00.001Z</published><updated>2008-02-16T12:46:35.873Z</updated><title type='text'>set root user password mysql</title><content type='html'>#PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !&lt;br /&gt;#This is done with:&lt;br /&gt;/usr/bin/mysqladmin -u root  password 'new-password'&lt;br /&gt;/usr/bin/mysqladmin -u root -h dell  password 'new-password'&lt;br /&gt;#See the manual for more instructions.&lt;br /&gt;&lt;br /&gt;#NOTE:  If you are upgrading from a MySQL &lt;= 3.22.10 you should run&lt;br /&gt;#the /usr/bin/mysql_fix_privilege_tables. Otherwise you will not be&lt;br /&gt;#able to use the new GRANT command!&lt;br /&gt;&lt;br /&gt;#You can start the MySQL daemon with:&lt;br /&gt;cd /usr ; /usr/bin/safe_mysqld &amp;amp;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-110872561731528936?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/110872561731528936/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=110872561731528936' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/110872561731528936'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/110872561731528936'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2005/02/please-remember-to-set-password-for.html' title='set root user password mysql'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-110864845890812261</id><published>2005-02-17T13:53:00.001Z</published><updated>2008-02-16T12:47:24.818Z</updated><title type='text'>iptables logging</title><content type='html'>#Log iptables traffic on a specific port (25, in this case):&lt;br /&gt;iptables -A INPUT -p tcp --dport 25 -j LOG --log-prefix "SMTPTRAFFIC:"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-110864845890812261?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/110864845890812261/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=110864845890812261' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/110864845890812261'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/110864845890812261'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2005/02/log-iptables-traffic-on-specific-port.html' title='iptables logging'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-110665146665126671</id><published>2005-01-25T11:10:00.000Z</published><updated>2005-01-25T11:11:06.650Z</updated><title type='text'>Oracle Processes &amp; SEMMNS</title><content type='html'>Parameter Background:&lt;br /&gt;PROCESSES specifies the maximum number of operating system user processes that can simultaneously connect to Oracle. Its value should allow for all background processes such as locks, job queue processes, and parallel execution processes. An acceptable range of values is 6 to operating system-dependent.&lt;br /&gt;&lt;br /&gt;The maximum value of the processes initialization parameter is dependent on the HP-UX 11.0&lt;br /&gt;kernal parameter SEMMNS. Testing has indicated that Oracle reserves eighteen semaphores for some undocumented purpose.&lt;br /&gt;&lt;br /&gt;If increasing the value of PROCESSES results in&lt;br /&gt;ERROR on startup of the Oracle instance:&lt;br /&gt;&lt;br /&gt;SQL&gt; startup&lt;br /&gt;ORA-24323: value not allowed&lt;br /&gt;ORA-27146: post/wait initialization failed&lt;br /&gt;&lt;br /&gt;Resolution:&lt;br /&gt;Increase the value of SEMMNS to be at least 18 higher then the maximum value you require for PROCESSES.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;If your kernal parameter is set to:&lt;br /&gt;SEMMNS = 500&lt;br /&gt;&lt;br /&gt;The maximum number of processes that Oracle will let you start the instance will be:&lt;br /&gt;PROCESSES = 482&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-110665146665126671?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/110665146665126671/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=110665146665126671' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/110665146665126671'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/110665146665126671'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2005/01/oracle-processes-semmns.html' title='Oracle Processes &amp; SEMMNS'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-110206590147288878</id><published>2004-12-03T09:24:00.000Z</published><updated>2005-01-24T11:00:01.706Z</updated><title type='text'>Transcoding</title><content type='html'>http://linuxathome.com/index.php?p=80&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-110206590147288878?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/110206590147288878/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=110206590147288878' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/110206590147288878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/110206590147288878'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2004/12/transcoding.html' title='Transcoding'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-110206564292127517</id><published>2004-12-03T09:18:00.000Z</published><updated>2005-01-24T11:00:26.356Z</updated><title type='text'>mencoder options</title><content type='html'>&lt;code&gt;mencoder -oac copy -ovc lavc -lavcopts vcodec=mpeg4 -o outputfilename.avi inputfilename.mpg&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-110206564292127517?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/110206564292127517/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=110206564292127517' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/110206564292127517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/110206564292127517'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2004/12/mencoder-options.html' title='mencoder options'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-109714471020009044</id><published>2004-10-07T10:24:00.000Z</published><updated>2004-10-07T10:25:10.200Z</updated><title type='text'>Birthdays in Access</title><content type='html'>Microsoft Access Database Solutions - Selecting birthdays within the next 30 days:&lt;br /&gt;&lt;br /&gt;The following example shows how to create a query in SQL (Structured Query Language) that will select all birthdays that are due to fall in the next 30 days. This example assumes that you have a table named Employees and that this table includes a field named Birthdate.&lt;br /&gt;&lt;br /&gt;As usual, there are many ways to perform the same action.&lt;br /&gt;&lt;br /&gt;This select statement can be pasted straight into Query By Example sql view but don't forget to change table (Employees) and field name (Birthdate) ...&lt;br /&gt;&lt;br /&gt;SELECT Employees.Birthdate,&lt;br /&gt;&lt;br /&gt;Int((Now()-[birthdate])/365.25) AS Age,&lt;br /&gt;&lt;br /&gt;[Birthdate]+((Int((Now()-[birthdate])/365.25)+1)*365.25) AS NextBirthday,&lt;br /&gt;&lt;br /&gt;(Int((Now()-[birthdate])/365.25)+1) AS AgeNextBirthday, [Age]+1 AS Next&lt;br /&gt;&lt;br /&gt;FROM Employees&lt;br /&gt;&lt;br /&gt;WHERE ((([Birthdate]+((Int((Now()-[birthdate])/365.25)+1)*365.25)) Between Now() And Now()+30));&lt;br /&gt;&lt;br /&gt;Run the query to validate your results. &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-109714471020009044?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/109714471020009044/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=109714471020009044' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109714471020009044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109714471020009044'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2004/10/birthdays-in-access.html' title='Birthdays in Access'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-109594948949621197</id><published>2004-09-23T14:24:00.000Z</published><updated>2004-09-23T14:24:49.496Z</updated><title type='text'>solaris syslog.conf</title><content type='html'>syslog.conf on solaris needs tabs, not spaces!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-109594948949621197?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/109594948949621197/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=109594948949621197' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109594948949621197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109594948949621197'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2004/09/solaris-syslogconf.html' title='solaris syslog.conf'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-109411997586260050</id><published>2004-09-02T10:11:00.000Z</published><updated>2004-09-02T10:12:55.863Z</updated><title type='text'>cdrecord format</title><content type='html'>cdrecord -v speed=4 -dev=ATAPI:0,0 filename.iso&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-109411997586260050?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/109411997586260050/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=109411997586260050' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109411997586260050'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109411997586260050'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2004/09/cdrecord-format.html' title='cdrecord format'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-109411788817877510</id><published>2004-09-02T09:37:00.000Z</published><updated>2005-01-05T12:02:22.966Z</updated><title type='text'>vdr compile</title><content type='html'> Ok here is the info translated and with the links / command bought up to date -&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Get your Linux machine up and running. For this I did an install off a linux disk and included most items. It has X windows etc install but I do not use it (it does make sure you get most of the drivers you will need).&lt;br /&gt;&lt;br /&gt;&lt;b&gt;cd /usr/local/src&lt;/b&gt; - This is the folder where all the code / programs will go&lt;br /&gt;&lt;br /&gt;We start by getting the DVB driver and unzipping it&lt;br /&gt;&lt;b&gt;wget &lt;a href="http://pvrguide.no-ip.com/files/vdr/linux-dvb.2003-10-13.tar.bz2" target="_blank"&gt;http://pvrguide.no-ip.com/files/vdr/linux-...3-10-13.tar.bz2&lt;/a&gt;&lt;br /&gt;tar xvfj linux-dvb.2003-10-13.tar.bz2&lt;br /&gt;ln -s linux-dvb.2003-10-13 DVB&lt;br /&gt;rm linux-dvb.2003-10-13.tar.bz2&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;There is a patched root file that you will need if you are decrypting channels&lt;br /&gt;&lt;b&gt;wget &lt;a href="http://pvrguide.no-ip.com/files/vdr/Root-patched-20031013.gz" target="_blank"&gt;http://pvrguide.no-ip.com/files/vdr/Root-patched-20031013.gz&lt;/a&gt;&lt;br /&gt;gunzip Root-patched-20031013.gz&lt;br /&gt;cp DVB/driver/av7110/Root DVB/driver/av7110/OldRoot&lt;br /&gt;mv Root-patched-20031013 DVB/driver/av7110/Root&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Now you can make the patched DVB driver&lt;br /&gt;&lt;b&gt;cd DVB/driver&lt;br /&gt;make&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;If all looks good -&lt;br /&gt;&lt;b&gt;./makedev.napi&lt;br /&gt;make insmod&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;cd ..&lt;br /&gt;make &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------&lt;br /&gt;Now lets install the VDR program.  I have based this on V 1.2.6 as that is the last stable version/&lt;br /&gt;&lt;br /&gt;&lt;b&gt;cd /usr/local/src&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;wget &lt;a href="http://pvrguide.no-ip.com/files/vdr/vdr-1.2.6.tar.bz2" target="_blank"&gt;http://pvrguide.no-ip.com/files/vdr/vdr-1.2.6.tar.bz2&lt;/a&gt;&lt;br /&gt;tar xvfj vdr-1.2.6.tar.bz2&lt;br /&gt;rm vdr-1.2.6.tar.bz2&lt;br /&gt;ln -s vdr-1.2.6 VDR&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;We add on the AutoPID patch to keep the channels up to date as most providers move them about now and then&lt;br /&gt;&lt;b&gt;cd /usr/local/src/VDR&lt;br /&gt;wget &lt;a href="http://vdrbox.free.fr/fichiers/AutoPID_vdr-1.2.6.diff.bz2" target="_blank"&gt;http://vdrbox.free.fr/fichiers/AutoPID_vdr-1.2.6.diff.bz2&lt;/a&gt;&lt;br /&gt;bunzip2 AutoPID_vdr-1.2.6.diff.bz2&lt;br /&gt;patch -p1 &lt;&gt;&lt;br /&gt;&lt;br /&gt;And the Elchi patches to make it look good&lt;br /&gt;&lt;b&gt;wget &lt;a href="http://www.hut.fi/%7Erahrenbe/vdr/vdr-1.2.6-ElchiAIO4d.diff.gz" target="_blank"&gt;http://www.hut.fi/~rahrenbe/vdr/vdr-1.2.6-ElchiAIO4d.diff.gz&lt;/a&gt;&lt;br /&gt;gunzip vdr-1.2.6-ElchiAIO4d.diff.gz&lt;br /&gt;patch -p1 &lt;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------&lt;br /&gt;Now lets get the system set up and ready to run -&lt;br /&gt;&lt;br /&gt;&lt;b&gt;cd /usr/local/src/VDR&lt;br /&gt;make&lt;br /&gt;mkdir /video&lt;br /&gt;mkdir /usr/local/src/VDRtmp&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Edit the &lt;b&gt;/usr/local/src/VDR/runvdr&lt;/b&gt; file.&lt;br /&gt;change line in runvdr to :&lt;br /&gt;&lt;b&gt;VDRCMD="$VDRPRG -w 60 -c /usr/local/src/VDRtmp $*"&lt;/b&gt;&lt;br /&gt;and add at the top&lt;br /&gt;&lt;b&gt;cd /usr/local/src/VDR&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Lets get the config files in the right place&lt;br /&gt;&lt;b&gt;cp *.conf ../VDRtmp&lt;/b&gt;&lt;br /&gt;and link to the runvdr command so we can get to it from anywhere&lt;br /&gt;&lt;b&gt;ln -s /usr/local/src/VDR/runvdr /usr/bin/runvdr&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Now move off to the config directory&lt;br /&gt;&lt;b&gt;cd /usr/local/src/VDRtmp&lt;/b&gt;&lt;br /&gt;edit &lt;b&gt;sources.conf&lt;/b&gt; Comment out anything you do not need&lt;br /&gt;edit &lt;b&gt;diseqc.conf&lt;/b&gt;&lt;br /&gt;you will now need to make the channels.conf file. Either convert one you already have or look in the plugins section and find the scan script.&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;&lt;/b&gt;----&lt;b&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-109411788817877510?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/109411788817877510/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=109411788817877510' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109411788817877510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109411788817877510'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2004/09/vdr-compile.html' title='vdr compile'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-109397794340356682</id><published>2004-09-01T13:44:00.000Z</published><updated>2004-09-01T12:36:51.146Z</updated><title type='text'>help with compiling DVB drivers for linux</title><content type='html'>&lt;span class="postbody"&gt;KERNEL : 2.6.7-1.456_4.rhfc2.at&lt;br /&gt;------------------------------------------------------------------------------------------------------------&lt;br /&gt;case $1 in&lt;br /&gt;unload)&lt;br /&gt;modprobe -r dvb_bt8xx&lt;br /&gt;modprobe -r dst&lt;br /&gt;modprobe -r bttv&lt;br /&gt;;;&lt;br /&gt;load)&lt;br /&gt;#modprobe bttv i2c_hw=1 card=0x71&lt;br /&gt;#modprobe dvb-bt8xx&lt;br /&gt;#modprobe dst dst_type=1&lt;br /&gt;modprobe dvb_core dvb_shutdown_timeout=0&lt;br /&gt;modprobe video-buf&lt;br /&gt;modprobe bttv i2c_hw=1 card=0x71&lt;br /&gt;modprobe bt878&lt;br /&gt;modprobe dst dst_type_flags=4&lt;br /&gt;modprobe dvb-bt8xx&lt;br /&gt;;;&lt;br /&gt;*)&lt;br /&gt;echo "error load or unload dummy"&lt;br /&gt;;;&lt;br /&gt;esac&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------------------&lt;br /&gt;#!/bin/sh&lt;br /&gt;# Create device nodes for the Linux DVB API with DVB_API_VERSION 2.&lt;br /&gt;# The devices created are suitable for most current PC DVB cards,&lt;br /&gt;# i.e. cards having one frontend, one demux and optionally one&lt;br /&gt;# MPEG decoder.&lt;br /&gt;# The script creates devices for four cards by default.&lt;br /&gt;&lt;br /&gt;if [ -e /dev/.devfsd ]; then&lt;br /&gt;        echo "It seems you are using devfs. Good!"&lt;br /&gt;        exit 0&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;# get rid of old DVB API devices; do it twice for good measure...&lt;br /&gt;rm -rf /dev/ost&lt;br /&gt;rm -rf /dev/ost&lt;br /&gt;rm -rf /dev/dvb&lt;br /&gt;rm -rf /dev/dvb&lt;br /&gt;&lt;br /&gt;mkdir /dev/dvb&lt;br /&gt;chmod 755 /dev/dvb&lt;br /&gt;&lt;br /&gt;for i in `seq 0 3`; do&lt;br /&gt;        echo "Creating DVB devices in /dev/dvb/adapter$i"&lt;br /&gt;        mkdir /dev/dvb/adapter$i&lt;br /&gt;        chmod 755 /dev/dvb/adapter$i&lt;br /&gt;        mknod -m 0666 /dev/dvb/adapter$i/video0    c 250   `expr 64 \* $i + 0`&lt;br /&gt;        mknod -m 0666 /dev/dvb/adapter$i/audio0    c 250   `expr 64 \* $i + 1`&lt;br /&gt;        mknod -m 0666 /dev/dvb/adapter$i/frontend0 c 250   `expr 64 \* $i + 3`&lt;br /&gt;        mknod -m 0666 /dev/dvb/adapter$i/demux0    c 250   `expr 64 \* $i + 4`&lt;br /&gt;        mknod -m 0666 /dev/dvb/adapter$i/dvr0      c 250   `expr 64 \* $i + 5`&lt;br /&gt;        mknod -m 0666 /dev/dvb/adapter$i/ca0       c 250   `expr 64 \* $i + 6`&lt;br /&gt;        mknod -m 0666 /dev/dvb/adapter$i/net0      c 250   `expr 64 \* $i + 7`&lt;br /&gt;        mknod -m 0666 /dev/dvb/adapter$i/osd0      c 250   `expr 64 \* $i + 8`&lt;br /&gt;        chown root.video /dev/dvb/adapter$i/*&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;---------------------------------------------------------------------------------------------------&lt;br /&gt;Patching/updating your kernel source:&lt;br /&gt;1. Download video4linux snapshot from &lt;a href="http://dl.bytesex.org/cvs-snapshots/" target="_blank" _base_href="http://pvrguide.no-ip.com/bbs-old/"&gt;http://dl.bytesex.org/cvs-snapshots/&lt;/a&gt;&lt;br /&gt;2. Unpack into a temp directory.&lt;br /&gt;3. Copy the files under video4linux/ to drivers/media/video,&lt;br /&gt;  owerwrite anything that is there.&lt;br /&gt;4. Update to latest dvb-kernel CVS and use makelinks to patch your kernel.&lt;br /&gt;&lt;br /&gt;Building the modules outside the kernel:&lt;br /&gt;1. Download video4linux snapshot from &lt;a href="http://dl.bytesex.org/cvs-snapshots/" target="_blank" _base_href="http://pvrguide.no-ip.com/bbs-old/"&gt;http://dl.bytesex.org/cvs-snapshots/&lt;/a&gt;&lt;br /&gt;2. Unpack into a temp directory.&lt;br /&gt;3. Run make in the video4linux directory, and copy the modules to:&lt;br /&gt;/lib/modules/{kernel-version}/kernel/drivers/media/video&lt;br /&gt;4. Update to latest dvb-kernel CVS&lt;br /&gt;5. Apply the attached patch to dvb-kernel, and copy bttv.h from the&lt;br /&gt;  video4linux directory to build-2.6.&lt;br /&gt;6. Run make in build-2.6. &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-109397794340356682?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/109397794340356682/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=109397794340356682' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109397794340356682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109397794340356682'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2004/09/help-with-compiling-dvb-drivers-for.html' title='help with compiling DVB drivers for linux'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-109353051892026199</id><published>2004-08-26T14:27:00.000Z</published><updated>2004-08-26T14:29:14.073Z</updated><title type='text'>How to configure syslog.conf &amp; customize syslog routing</title><content type='html'>Have you ever seen a message in /var/adm/syslog/syslog.log and wished that&lt;br /&gt;something special could be done when it occurs?  The messages in the syslog.log&lt;br /&gt;file are written by the syslogd(1m) daemon.  Syslogd is started at boot up and&lt;br /&gt;can be configured to handle messages differently.&lt;br /&gt;&lt;br /&gt;Syslogd reads and logs messages into a set of files described by the&lt;br /&gt;configuration file /etc/syslog.conf.  The syslog.conf file can be configured by&lt;br /&gt;the system administrator to do special handling for messages.  Messages can be&lt;br /&gt;routed to a logfile, another host, the terminals of specified users or sent to&lt;br /&gt;all users.&lt;br /&gt;&lt;br /&gt;Messages are identified by facility and level.  If special handling is desired&lt;br /&gt;for a message that is already being routed to syslog the facility and level of&lt;br /&gt;the message must be identified.  This can be accomplished by running syslogd in&lt;br /&gt;debug mode.&lt;br /&gt;&lt;br /&gt;Run syslog in debug mode by killing the running syslogd daemon and starting it&lt;br /&gt;with /usr/sbin/syslogd -d.  This will result in a continuous scrolling&lt;br /&gt;display to the terminal syslogd was just started from.&lt;br /&gt;&lt;br /&gt;Look at the "pri" field in the output that scrolls to the screen.  The first&lt;br /&gt;character is the facility and the second is the level.  The file&lt;br /&gt;/usr/include/syslog.h contains the translations for the fields.&lt;br /&gt;&lt;br /&gt;Let's say the following syslogd debug output shows the message in question.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;got a message (1, 0x8)&lt;br /&gt;logmsg: pri 47, flags 0, from nitro, msg Apr 10 09:56:55 : LOGIN:&lt;br /&gt;pam_authenticate error&lt;br /&gt;readfds = 0x68 0x3 0x5 0x6&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The facility is 4 so it corresponds to the following line in&lt;br /&gt;/usr/include/syslog.h:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#define LOG_AUTH (4&lt;&lt;3) face="courier new"&gt;auth.debug              /var/adm/authrequests.log&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;auth.debug              /var/adm/syslog/syslog.log&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now, just have syslogd reread its configuration file to put the changes in&lt;br /&gt;effect.  Use the following command:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;kill -HUP `cat /var/run/syslog.pid`&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;NOTE:  The fields are seperated by tabs and not spaces.  If spaces included it&lt;br /&gt;won't work.&lt;br /&gt;&lt;br /&gt;The logger(1) command can be useful for testing the modifications.&lt;br /&gt;&lt;br /&gt;The following example shows how to direct messages to a file other than&lt;br /&gt;syslog.log.&lt;br /&gt;&lt;br /&gt;First, add "user.none" to the line in syslog.conf that directs messages to&lt;br /&gt;syslog.log. This prevents any messages with facility "user" from being written&lt;br /&gt;&lt;br /&gt;to syslog.log.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;*.info;mail.none;user.none      /var/adm/syslog/syslog.log&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Second, add a line to syslog.conf to send the messages to another file.&lt;br /&gt;This  "user.info" line causes all facility "user" messages with a level greater&lt;br /&gt;than or equal to "info" to be logged to syslog.notice.  The only level lower&lt;br /&gt;than info is debug.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;user.info               /var/adm/syslog/syslog.notice&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-109353051892026199?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/109353051892026199/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=109353051892026199' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109353051892026199'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109353051892026199'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2004/08/how-to-configure-syslogconf-customize.html' title='How to configure syslog.conf &amp; customize syslog routing'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-109353036970280434</id><published>2004-08-26T14:25:00.000Z</published><updated>2004-08-26T14:26:09.703Z</updated><title type='text'>HP-UX fbackup and frecover syntax quick reference</title><content type='html'>  &lt;h2&gt;Create a backup using a graph file&lt;/h2&gt;   &lt;p class="MsoNormal"&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p class="MsoNormal"&gt;The easiest way to use fbackup is to create a file containing a list of files/directories to be backed up or excluded, this is known as a graph file.&lt;span style=""&gt;  &lt;/span&gt;Files and directories to be included in the backup are proceeded by a letter "i", or a letter "e" for files to be excluded.&lt;/p&gt;   &lt;p class="MsoNormal"&gt;The example below will instruct fbackup to backup everything under root, except /tmp, /var/tmp and /savecore.&lt;span style=""&gt;  &lt;/span&gt;See the fbackup man page for more information.&lt;/p&gt;   &lt;p class="MsoNormal"&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p class="command"&gt;i /&lt;/p&gt;   &lt;p class="command"&gt;e /tmp&lt;/p&gt;   &lt;p class="command"&gt;e /var/tmp&lt;/p&gt;   &lt;p class="command"&gt;e /savecore&lt;/p&gt;   &lt;p class="MsoNormal"&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p class="MsoNormal"&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p class="MsoNormal"&gt;To create a level 0 backup to /dev/rmt/0m using the graph file:&lt;/p&gt;   &lt;p class="MsoNormal"&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p class="command"&gt;fbackup -0 -f /dev/rmt/0m -g &lt;i style=""&gt;graph_file&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;   &lt;p class="MsoNormal"&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p class="MsoNormal"&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p class="MsoNormal"&gt;To create a level 0 backup on a tape drive on a remote system:&lt;/p&gt;   &lt;p class="MsoNormal"&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p class="command"&gt;fbackup -0 -f &lt;i style=""&gt;server&lt;/i&gt;:/dev/rmt/0m -g &lt;i style=""&gt;graph_file&lt;/i&gt;&lt;/p&gt;   &lt;p class="MsoNormal"&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p class="MsoNormal"&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;h2&gt;Create a backup without using a graph file&lt;/h2&gt;   &lt;p class="MsoNormal"&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p class="MsoNormal"&gt;Create a level 0 backup of /usr, but exclude /usr/tmp.&lt;span style=""&gt;  &lt;/span&gt;This example creates a file archive called "/backup/usr_fbackup.20020501":&lt;/p&gt;   &lt;p class="command"&gt;&lt;span style="font-family:Arial;"&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="command"&gt;fbackup -0 -f /backup/usr_fbackup.20020501&lt;i style=""&gt; &lt;/i&gt;-i /usr -e /usr/tmp&lt;i style=""&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;   &lt;p class="MsoNormal"&gt;&lt;span style=";font-family:&amp;quot;;" &gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal"&gt;&lt;span style=";font-family:&amp;quot;;" &gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;h2&gt;Recover files from an fbackup archive (tape device or file)&lt;/h2&gt;   &lt;p class="MsoNormal"&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p class="MsoNormal"&gt;List the contents of an fbackup archive and save the output to /restore/contents.txt:&lt;/p&gt;   &lt;p class="MsoNormal"&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p class="command"&gt;frecover -I /restore/contents.txt -f &lt;i style=""&gt;archive&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;   &lt;p class="MsoNormal"&gt;&lt;span style=";font-family:&amp;quot;;" &gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal"&gt;&lt;span style=";font-family:&amp;quot;;" &gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal"&gt;Use the following command to recover all files from an fbackup archive. Warning; this will restore to the absolute pathname, therefore do not use this command to restore into an alternative path.&lt;/p&gt;   &lt;p class="MsoNormal"&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p class="command"&gt;frecover -r -f &lt;i style=""&gt;archive&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;   &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;   &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;   &lt;p class="MsoNormal"&gt;Extract specific files (specified in a graph file) from an fbackup archive.&lt;/p&gt;   &lt;p class="command"&gt;&lt;span style="font-family:Arial;"&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="command"&gt;frecover -x -g &lt;i style=""&gt;graph_file&lt;/i&gt; -f &lt;i style=""&gt;archive&lt;/i&gt;&lt;/p&gt;   &lt;p class="command"&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p class="command"&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p class="MsoNormal"&gt;Recover a specific file from the archive (use absolute pathnames).&lt;span style=""&gt;  &lt;/span&gt;In this example /tmp/file.txt is extracted:&lt;/p&gt;   &lt;p class="command"&gt;&lt;span style="font-family:Arial;"&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="command"&gt;frecover -x -i /tmp/file.txt -f &lt;i style=""&gt;archive&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;   &lt;p class="command"&gt;&lt;i style=""&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;   &lt;p class="command"&gt;&lt;i style=""&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;   &lt;p class="MsoNormal"&gt;Recover a file to the current working directory (-X option).&lt;span style=""&gt;  &lt;/span&gt;For example, to recover /tmp/file.txt to directory /restore you would perform the following:&lt;/p&gt;   &lt;p class="MsoNormal"&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p class="command"&gt;cd /restore&lt;/p&gt;   &lt;p class="command"&gt;frecover -X -x -i /tmp/file.txt -f &lt;i style=""&gt;archive&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;   &lt;p class="command"&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p class="MsoNormal"&gt;NOTE: The above command will create /restore/tmp/file.txt, i.e. it will create the leading directories as needed.&lt;span style=""&gt;  &lt;/span&gt;Use the -F option to instruct frecover not to create leading directories.&lt;/p&gt;   &lt;p class="MsoNormal"&gt;The following commands would restore /tmp/file.txt as /restore/file.txt.&lt;/p&gt;   &lt;p class="MsoNormal"&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p class="command"&gt;cd /restore&lt;/p&gt;   &lt;p class="command"&gt;frecover -X -F -x -i /tmp/file.txt -f &lt;i style=""&gt;archive&lt;/i&gt;&lt;/p&gt;   &lt;p class="MsoNormal"&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p class="MsoHeader" style=""&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p class="MsoNormal"&gt;Use the -N (no recover) option to preview a restore. This can be used to check your syntax without the risk of overwriting files. The -v option creates verbose output.&lt;span style=""&gt;   &lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal"&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p class="command"&gt;frecover -N -v -f &lt;i style=""&gt;archive&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;   &lt;p class="MsoNormal"&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p class="MsoNormal"&gt;&lt;!--[if !supportEmptyParas]--&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-109353036970280434?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/109353036970280434/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=109353036970280434' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109353036970280434'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109353036970280434'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2004/08/hp-ux-fbackup-and-frecover-syntax.html' title='HP-UX fbackup and frecover syntax quick reference'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-109353014523766823</id><published>2004-08-26T14:21:00.000Z</published><updated>2004-08-26T14:22:25.236Z</updated><title type='text'>bc - the Unix command line calculator</title><content type='html'>&lt;span style="font-family: courier new;"&gt;	echo "scale=2;2.2*2"|bc&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;	echo "scale=2;1+1"|bc"&lt;/span&gt;&lt;br /&gt;(1 plus 1 calculated to 2 decimal places) &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-109353014523766823?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/109353014523766823/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=109353014523766823' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109353014523766823'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109353014523766823'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2004/08/bc-unix-command-line-calculator.html' title='bc - the Unix command line calculator'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-109353008407194048</id><published>2004-08-26T14:19:00.000Z</published><updated>2004-08-26T14:21:24.070Z</updated><title type='text'>DCE (under HP-UX anyway)</title><content type='html'>To add a DCE principle/account:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;        dcecp -c pri create ${i}&lt;/span&gt;&lt;br /&gt; &lt;span style="font-family: courier new;"&gt;        dcecp -c org add org1 -member ${i}&lt;/span&gt;&lt;br /&gt; &lt;span style="font-family: courier new;"&gt;        dcecp -c group add user1  -member ${i}&lt;/span&gt;&lt;br /&gt; &lt;span style="font-family: courier new;"&gt;        dcecp -c group add group2 -member ${i}&lt;/span&gt;&lt;br /&gt; &lt;span style="font-family: courier new;"&gt;        acc create ${i} -group group1 -org org1 -password cti -mypwd CELLADMINPASSWORD&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;to change the password :&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;	acc modify ${i} -password newpassword -mypwd CELLADMINPASSWORD&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;to show current dce credentials :&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;klist&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-109353008407194048?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/109353008407194048/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=109353008407194048' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109353008407194048'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109353008407194048'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2004/08/dce-under-hp-ux-anyway.html' title='DCE (under HP-UX anyway)'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-109352974872890751</id><published>2004-08-26T14:15:00.000Z</published><updated>2004-08-26T14:15:48.726Z</updated><title type='text'>Finding out the memory information on a HP-UX system</title><content type='html'>Finding out the memory information on a HP Unix system&lt;br /&gt;Total Memory :&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;echo "selclass qualifier memory;info;wait;infolog"|cstm | grep "Total Configured Memory"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;All Memory Information , slots, modules etc.&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;echo "selclass qualifier memory;info;wait;infolog"|cstm&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-109352974872890751?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/109352974872890751/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=109352974872890751' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109352974872890751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109352974872890751'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2004/08/finding-out-memory-information-on-hp.html' title='Finding out the memory information on a HP-UX system'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-109352945635724889</id><published>2004-08-26T14:08:00.000Z</published><updated>2004-08-26T14:13:04.666Z</updated><title type='text'>IP Address Subnets and Classes</title><content type='html'>Here's a table showing the relationship between the / notation, the byte&lt;br /&gt;notation, and the corresponding binary numbers (with a dot every eight&lt;br /&gt;digits) for the 32 bit addresses.  I've thrown in a count of how many&lt;br /&gt;Class A/B/C networks the larger networks encompass.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;/ Notation   Binary                               Byte Notation  #Class&lt;br /&gt;----------   -----------------------------------  -------------- ------&lt;br /&gt;/0           00000000.00000000.00000000.00000000  0.0.0.0         256 A&lt;br /&gt;/1           10000000.00000000.00000000.00000000  128.0.0.0       128 A&lt;br /&gt;/2           11000000.00000000.00000000.00000000  192.0.0.0        64 A&lt;br /&gt;/3           11100000.00000000.00000000.00000000  224.0.0.0        32 A&lt;br /&gt;/4           11110000.00000000.00000000.00000000  240.0.0.0        16 A&lt;br /&gt;/5           11111000.00000000.00000000.00000000  248.0.0.0         8 A&lt;br /&gt;/6           11111100.00000000.00000000.00000000  252.0.0.0         4 A&lt;br /&gt;/7           11111110.00000000.00000000.00000000  254.0.0.0         2 A&lt;br /&gt;/8           11111111.00000000.00000000.00000000  255.0.0.0         1 A&lt;br /&gt;/9           11111111.10000000.00000000.00000000  255.128.0.0     128 B&lt;br /&gt;/10          11111111.11000000.00000000.00000000  255.192.0.0      64 B&lt;br /&gt;/11          11111111.11100000.00000000.00000000  255.224.0.0      32 B&lt;br /&gt;/12          11111111.11110000.00000000.00000000  255.240.0.0      16 B&lt;br /&gt;/13          11111111.11111000.00000000.00000000  255.248.0.0       8 B&lt;br /&gt;/14          11111111.11111100.00000000.00000000  255.252.0.0       4 B&lt;br /&gt;/15          11111111.11111110.00000000.00000000  255.254.0.0       2 B&lt;br /&gt;/16          11111111.11111111.00000000.00000000  255.255.0.0       1 B&lt;br /&gt;/17          11111111.11111111.10000000.00000000  255.255.128.0   128 C&lt;br /&gt;/18          11111111.11111111.11000000.00000000  255.255.192.0    64 C&lt;br /&gt;/19          11111111.11111111.11100000.00000000  255.255.224.0    32 C&lt;br /&gt;/20          11111111.11111111.11110000.00000000  255.255.240.0    16 C&lt;br /&gt;/21          11111111.11111111.11111000.00000000  255.255.248.0     8 C&lt;br /&gt;/22          11111111.11111111.11111100.00000000  255.255.252.0     4 C&lt;br /&gt;/23          11111111.11111111.11111110.00000000  255.255.254.0     2 C&lt;br /&gt;/24          11111111.11111111.11111111.00000000  255.255.255.0     1 C&lt;br /&gt;/25          11111111.11111111.11111111.10000000  255.255.255.128&lt;br /&gt;/26          11111111.11111111.11111111.11000000  255.255.255.192&lt;br /&gt;/27          11111111.11111111.11111111.11100000  255.255.255.224&lt;br /&gt;/28          11111111.11111111.11111111.11110000  255.255.255.240&lt;br /&gt;/29          11111111.11111111.11111111.11111000  255.255.255.248&lt;br /&gt;/30          11111111.11111111.11111111.11111100  255.255.255.252&lt;br /&gt;/31          11111111.11111111.11111111.11111110  255.255.255.254&lt;br /&gt;/32          11111111.11111111.11111111.11111111  255.255.255.255&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Here's an example of how to get from the binary number 11000000 to&lt;br /&gt;the decimal number (192).&lt;br /&gt;&lt;br /&gt;11000000 =&gt;  128*1 + 64*1 + 32*0 + 16*0 + 8*0 + 4*0 + 2*0 + 1*0&lt;br /&gt;         = 128 + 64   + 0    + 0    + 0   + 0   + 0   +   0&lt;br /&gt;         = 128 + 64&lt;br /&gt;         = 192&lt;br /&gt;&lt;br /&gt;Another example (using an arbitrarily chosen binary number):&lt;br /&gt;&lt;br /&gt;10000100 =&gt; 128*1 + 64*0 + 32*0 + 16*0 + 8*0 + 4*1 + 2*0 + 1*0&lt;br /&gt;        = 128 + 0    + 0    + 0    + 0   + 4   + 0   +   0&lt;br /&gt;        = 128 + 4&lt;br /&gt;        = 132&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-109352945635724889?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/109352945635724889/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=109352945635724889' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109352945635724889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109352945635724889'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2004/08/ip-address-subnets-and-classes.html' title='IP Address Subnets and Classes'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-109352929924616697</id><published>2004-08-26T14:07:00.000Z</published><updated>2004-08-26T14:08:19.246Z</updated><title type='text'>Extend a filesystem on HP-UX using online JFS</title><content type='html'>lvextend -L 16 /dev/vg/lv&lt;br /&gt;fsadm -F vxfs -b 16384 /mountpoint&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-109352929924616697?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/109352929924616697/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=109352929924616697' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109352929924616697'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109352929924616697'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2004/08/extend-filesystem-on-hp-ux-using.html' title='Extend a filesystem on HP-UX using online JFS'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-109352922266592750</id><published>2004-08-26T14:06:00.000Z</published><updated>2004-08-26T14:07:02.666Z</updated><title type='text'>Mirroring root disks using HP-UX LVM</title><content type='html'>pvcreate -B /dev/rdsk/root-mirror&lt;br /&gt;vgextend /dev/vg00 /dev/dsk/root-mirror&lt;br /&gt;mkboot /dev/rdsk/root-mirror&lt;br /&gt;mkboot -a "hpux -lq" /dev/rdsk/root-mirror&lt;br /&gt;mkboot -a "hpux -lq" /dev/rdsk/root-disk&lt;br /&gt;lvextend -m 1 /dev/vg00/lvol1&lt;br /&gt;lvextend -m 1 /dev/vg00/lvol2&lt;br /&gt;.... etc....&lt;br /&gt;lvlnboot -R&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-109352922266592750?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/109352922266592750/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=109352922266592750' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109352922266592750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109352922266592750'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2004/08/mirroring-root-disks-using-hp-ux-lvm.html' title='Mirroring root disks using HP-UX LVM'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-109352906410941972</id><published>2004-08-26T14:02:00.000Z</published><updated>2004-08-26T14:04:24.110Z</updated><title type='text'>Sony Ericsson T610</title><content type='html'>In order to see which firmware you are running you have to access the Service Menu.&lt;br /&gt;his is done by (rather quickly) pulling the joystick right, pressing *, left, left, *, left, *.&lt;br /&gt;The firmware version is located under service information &gt; SW information&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-109352906410941972?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/109352906410941972/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=109352906410941972' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109352906410941972'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109352906410941972'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2004/08/sony-ericsson-t610.html' title='Sony Ericsson T610'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-109352810664485112</id><published>2004-08-26T13:48:00.000Z</published><updated>2004-08-26T13:49:32.796Z</updated><title type='text'>A note about NIS</title><content type='html'>passwd:    files nis&lt;br /&gt;group:     files nis&lt;br /&gt;&lt;br /&gt;This instructs the system to first look in /etc/passwd&lt;br /&gt;or /etc/group for an entry and then fallback and query&lt;br /&gt;NIS for the entry. This configuration does not look for&lt;br /&gt;nor enforce +/- behavior.&lt;br /&gt;&lt;br /&gt;If you want to use the +/- semantics you will need to&lt;br /&gt;configure passwd and group as follows:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;passwd:    compat&lt;br /&gt;group:     compat&lt;br /&gt;&lt;br /&gt;This instructs the system to enforce the +/- semantics.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-109352810664485112?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/109352810664485112/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=109352810664485112' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109352810664485112'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109352810664485112'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2004/08/note-about-nis.html' title='A note about NIS'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-109352771747225816</id><published>2004-08-26T13:39:00.000Z</published><updated>2004-08-26T13:53:29.756Z</updated><title type='text'>Virtusertable - How To</title><content type='html'>Virtusertable is used to do aliases to virtual domains hosted on the same server I'll use freebsd.org and&lt;br /&gt;freebsdhelp.org as examples in my article as freebsd.org is the main box and freebsdhelp.org is the virtual&lt;br /&gt;domain hosted on freebsd.org.&lt;br /&gt;&lt;br /&gt;*=- The easy way assuming sendmail.cf compiled with the correct features:&lt;br /&gt;&lt;br /&gt;Most recent sendmail source are compiled with the needed FEATURES such as "FEATURE(virtusertable, `hash -o&lt;br /&gt;/etc/mail/virtusertable')dnl" and  "FEATURE(access_db, `hash -o /etc/mail/access')dnl" in the sendmail.mc file assuming&lt;br /&gt;you installed freebsd normally with sendmail which these features are already included in the freebsd.mc&lt;br /&gt;(/usr/src/etc/sendmail/freebsd.mc) 3 steps is needed to do virtual email aliasing for freebsdhelp.org over freebsd.org main box&lt;br /&gt;&lt;br /&gt;1. edit your sendmail.cw with any text editor such as vi(1) or ee(1)  and place all   &lt;br /&gt;domains that uses sendmail as their mailer deamon in this file, usually at&lt;br /&gt;/etc/sendmail.cw&lt;br /&gt;  or /etc/mail/sendmail.cw list them , save and exit.&lt;br /&gt;&lt;br /&gt;* your sendmail.cw will look like this listening:&lt;br /&gt;&lt;br /&gt;sendmail.cw&gt;&lt;br /&gt;&lt;br /&gt;freebsd.org&lt;br /&gt;freebsdhelp.org&lt;br /&gt;anyotherdomain.org&lt;br /&gt;&lt;br /&gt;sendmail.cw&lt;&lt;br /&gt;&lt;br /&gt;- YOU NEED TO RESTART SENDMAIL TO READ THE NEW ENTRIES SEND A SIGNAL HUP TO SENDMAIL&lt;br /&gt; BY 'killall -HUP sendmail'&lt;br /&gt;&lt;br /&gt;2. you have to make access for the virtual domain to access your sendmail by adding them&lt;br /&gt;  to /etc/mail/access file and making the database file access.db .&lt;br /&gt;&lt;br /&gt;* your /etc/mail/access will look something like this here seperating the domainname and&lt;br /&gt; RELAY with &lt;tab&gt;&lt;br /&gt;&lt;br /&gt;access&gt;&lt;br /&gt;&lt;br /&gt;freebsd.orgRELAY&lt;br /&gt;freebsdhelp.orgRELAY&lt;br /&gt;anyotherdomain.comRELAY&lt;br /&gt;&lt;br /&gt;access &amp;lt;&lt;br /&gt;&lt;br /&gt;* save and exit and then you have to create access.db while your at /etc/mail/ do this&lt;br /&gt;&lt;br /&gt;- makemap hash access &amp;lt; access&lt;br /&gt;&lt;br /&gt;- YOU HAVE TO UPDATE YOUR 'access.db' EVERYTIME YOU ADD NEW DOMAIN , PLUS YOU DON'T HAVE&lt;br /&gt; TO RESTART SENDMAIL.&lt;br /&gt;&lt;br /&gt;3. Finally to the virtusertable file edit the file /etc/mail/virtusertable and start your aliases&lt;br /&gt;there i'll mention some examples of virtusertable entries&lt;br /&gt;&lt;br /&gt;A. assume you want to alias admin@freebsdhelp.org to other LOCAL user on the same server&lt;br /&gt;*MAKE SURE ALL ENTRIES ARE SEPERATED WITH &lt;tab&gt;* :&lt;br /&gt;&lt;br /&gt;virtusertable&gt;&lt;br /&gt;&lt;br /&gt;admin@freebsdhelp.org    john&lt;br /&gt;&lt;br /&gt;virtusertable&lt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;B. assume you want to alias dave@freebsdhelp.org  to other FOREIGN user on other server:&lt;br /&gt;&lt;br /&gt;virtusertable&gt;&lt;br /&gt;&lt;br /&gt;dave@freebsdhelp.org      dave@yahoo.com&lt;br /&gt;&lt;br /&gt;virtusertable&lt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;C. assume you want to alias all emails coming on freebsdhelp.org to one LOCAL user and&lt;br /&gt;  still you want your admin@freebsdhelp.org  and dave@freebsdhelp.org  works:&lt;br /&gt;&lt;br /&gt;virtusertable&gt;&lt;br /&gt;&lt;br /&gt;admin@freebsdhelp.orgj     ohn&lt;br /&gt;dave@freebsdhelp.org        dave@yahoo.com&lt;br /&gt;@freebsdhelp.org               big&lt;br /&gt;&lt;br /&gt;virtusertable &amp;lt; &lt;br /&gt;&lt;br /&gt;D. the same of the above but to a FOREIGN user:&lt;br /&gt;&lt;br /&gt;admin@freebsdhelp.org       john&lt;br /&gt;dave@freebsdhelp.org        dave@yahoo.com&lt;br /&gt;@freebsdhelp.org               big@kuwaitnet.net&lt;br /&gt;&lt;br /&gt;* save and exit and then you have to create virtusertable.db while your at /etc/mail/ do this&lt;br /&gt;&lt;br /&gt;- makemap hash virtusertable &lt; virtusertable&lt;br /&gt;&lt;br /&gt;- YOU HAVE TO UPDATE YOUR 'virtusertable.db' EVERYTIME YOU ADD NEW ALIASES , PLUS YOU DON'T&lt;br /&gt; HAVE TO RESTART SENDMAIL.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;*=- The hard way if your sendmail.cf is compiled without correct features:&lt;br /&gt;&lt;br /&gt;A. First of all you have to creat your sendmail.mc including the following to enable virtual hosting with sendmail:&lt;br /&gt;&lt;br /&gt;FEATURE(access_db, `hash -o /etc/mail/access')dnl&lt;br /&gt;FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')dnl&lt;br /&gt;&lt;br /&gt;After adding them to your sendmail.mc compile it and install it while this article isn't a sendmail installation&lt;br /&gt;guide i wont talk more about it, for more info on SENDMAIL(8) can be found at http://www.sendmail.org&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;B. Go back to the first section and continue the job.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-109352771747225816?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/109352771747225816/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=109352771747225816' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109352771747225816'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109352771747225816'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2004/08/virtusertable-how-to.html' title='Virtusertable - How To'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-109352751541295687</id><published>2004-08-26T13:36:00.000Z</published><updated>2004-08-26T13:54:49.700Z</updated><title type='text'>X Windows screen resolution - Solaris</title><content type='html'>fbconfig -res 1152x900x76&lt;br /&gt;&lt;br /&gt;The default screen resolution varies on different solaris boxes -- it&lt;br /&gt;depends on the monitor sense codes and frame buffer capabilities.  In&lt;br /&gt;most cases this will be the Sun 19/20" monitors with a resolution of&lt;br /&gt;1280x1024. Default color depth is PseudoColor (8 bit) since some&lt;br /&gt;applications do not handle TrueColor too gracefully.&lt;br /&gt;&lt;br /&gt;On this page, there is a downloadable ksh script (fbinfo) that detects&lt;br /&gt;your framebuffer type and resolution.  Here is my output:&lt;br /&gt;&lt;br /&gt;$ fbinfo&lt;br /&gt;cgsix@1 is GX                           1152x900@66 Monitor type 0&lt;br /&gt;ffb@1e  is FFB1 67MHz Single buffered   1280x1024@76&lt;br /&gt;&lt;br /&gt;For those using the FFB Graphics Accelerator cards, the easiest way to&lt;br /&gt;find out current resolution settings, possible alternative resolutions&lt;br /&gt;for your monitor, and set a new resolution is to use the ffbconfig&lt;br /&gt;utility which configures the FFB Graphics Accelerator and some of the&lt;br /&gt;X11 window system defaults for FFB.&lt;br /&gt;&lt;br /&gt;/usr/sbin/ffbconfig -prconf&lt;br /&gt;/usr/sbin/ffbconfig -res \?&lt;br /&gt;/usr/sbin/ffbconfig -res 1152x900x76&lt;br /&gt;&lt;br /&gt;The following utility will apparently work on any solaris machine which&lt;br /&gt;any graphic card.  Although, as far as I can tell, you still have to&lt;br /&gt;look up in the field engineer's hand book the possible resolutions that&lt;br /&gt;are supported for your configuration.&lt;br /&gt;&lt;br /&gt;/usr/openwin/bin/xdpyinfo |grep dimension&lt;br /&gt;&lt;br /&gt;To set the resolution, run the following command as root:&lt;br /&gt;&lt;br /&gt;     # eeprom output-device=screen:r1280x1024x76&lt;br /&gt;&lt;br /&gt;then reboot. Alternatively, halt the machine and type&lt;br /&gt;&lt;br /&gt;     ok setenv output-device screen:r1280x1024x76&lt;br /&gt;     ok reset&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-109352751541295687?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/109352751541295687/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=109352751541295687' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109352751541295687'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109352751541295687'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2004/08/x-windows-screen-resolution-solaris.html' title='X Windows screen resolution - Solaris'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-109352738723788129</id><published>2004-08-26T13:34:00.000Z</published><updated>2004-08-26T13:57:19.280Z</updated><title type='text'>configuring a network interface on solaris</title><content type='html'>configuring a network interface on solaris:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;ifconfig eri1 plumb&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;ifconfig eri1 up&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;ifconfig eri1 192.10.2.27 netmask 255.255.255.0 broadcast 192.10.2.255 &lt;span style="font-family: courier new;"&gt;u&lt;/span&gt;p&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;if you want to make the ip address permanent you need to make a file called /etc/hostname.eri1 to do this type:&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;echo 192.10.2.27 &gt; /etc/hostname.eri1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;also, don't forget to add entries to /etc/hosts and /etc/netmasks &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-109352738723788129?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/109352738723788129/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=109352738723788129' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109352738723788129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109352738723788129'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2004/08/configuring-network-interface-on.html' title='configuring a network interface on solaris'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-109352717828728130</id><published>2004-08-26T13:32:00.000Z</published><updated>2004-08-26T14:01:21.296Z</updated><title type='text'>cpio</title><content type='html'>Backup using cpio&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;find  . -depth  -print | cpio -ovcB &gt; /dev/rmt/0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Viewing cpio files on a tape&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;cpio -ivtB &lt; /dev/rmt/0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Restoring a cpio backup&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;cpio -idvcB &lt; /dev/rmt/0&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-109352717828728130?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/109352717828728130/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=109352717828728130' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109352717828728130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109352717828728130'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2004/08/cpio.html' title='cpio'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-109352711435895331</id><published>2004-08-26T13:30:00.000Z</published><updated>2004-08-26T14:02:20.263Z</updated><title type='text'>Unix tar tips...</title><content type='html'>use tar to copy a directory with all links etc intact&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;tar cvf - . |(cd /opt/local/www/owl ; tar xvf - )&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;use tar to copy a directory from one host to another using remsh&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;cd /local/dir&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;tar cvf - ./* | remsh remotehost '(cd /remote/dir ; tar xvf -)'&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-109352711435895331?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/109352711435895331/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=109352711435895331' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109352711435895331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109352711435895331'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2004/08/unix-tar-tips.html' title='Unix tar tips...'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-109269262765339850</id><published>2004-08-16T21:42:00.000Z</published><updated>2004-08-16T21:43:47.653Z</updated><title type='text'>DIY Multi region dvd </title><content type='html'>Wanna make your DVD player multiregion but are scared of soldering?  Never fear - go &lt;a href="http://www.dvdchips.co.uk/thedvdforums/"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-109269262765339850?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.dvdchips.co.uk/thedvdforums/' title='DIY Multi region dvd '/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109269262765339850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/109269262765339850'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2004/08/diy-multi-region-dvd.html' title='DIY Multi region dvd '/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-108686369653210173</id><published>2004-06-10T10:34:00.000Z</published><updated>2004-06-10T10:34:56.533Z</updated><title type='text'>Oracle</title><content type='html'># determine the largest single chunk of free space available in the tablespace&lt;br /&gt;select tablespace_name,sum(bytes/1024/1024),max(bytes/1024/1024) from dba_free_space group by tablespace_&lt;br /&gt;name;&lt;br /&gt;# Coalesce a tablespace :&lt;br /&gt;alter tablespace ICT_SNAP_DATA coalesce&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-108686369653210173?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/108686369653210173/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=108686369653210173' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/108686369653210173'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/108686369653210173'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2004/06/oracle.html' title='Oracle'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-108506499721693711</id><published>2004-05-20T11:22:00.000Z</published><updated>2004-05-20T15:03:16.036Z</updated><title type='text'>Orange GPRS from a Palm Tungsten T3</title><content type='html'>Recently, I enabled GPRS on my phone, so that I could get high speed connections to the Internet from my Tungsten T2 via Bluetooth.&lt;br /&gt;&lt;br /&gt;Unfortunately, the required information for configuring the Palm network connection isn't available anywhere on the Orange website. However, Orange data services helped me through the setup, so in case anyone else needs it here is what you do:&lt;br /&gt;&lt;br /&gt;In Network create a new Service with the following parameters:&lt;br /&gt;&lt;br /&gt;Service: Orange (or any name of your choice)&lt;br /&gt;User name: "a"&lt;br /&gt;Password: "a"&lt;br /&gt;&lt;br /&gt;Note the quotes are required&lt;br /&gt;&lt;br /&gt;Connection type: PPP&lt;br /&gt;Idle timeout: never&lt;br /&gt;Query DNS&lt;br /&gt;IP Address automatic&lt;br /&gt;&lt;br /&gt;Script:&lt;br /&gt;Send AT&amp;F&lt;br /&gt;Send CR&lt;br /&gt;Send AT+CGDCONT=1 ,"IP","orangeinternet"&lt;br /&gt;Send&lt;br /&gt;Send&lt;br /&gt;Send CR&lt;br /&gt;Send ATD*99#&lt;br /&gt;Send CR&lt;br /&gt;Wait for CONNECT&lt;br /&gt;End&lt;br /&gt;&lt;br /&gt;In Connection create a new Connection with the following parameters:&lt;br /&gt;&lt;br /&gt;Connection&lt;br /&gt;Name: GPRS (can be whatever you want)&lt;br /&gt;Connect to: PC&lt;br /&gt;Via: Bluetooth&lt;br /&gt;Device: Nokia 6310i&lt;br /&gt;Speed: 115,200&lt;br /&gt;Flow Ctl: Automatic&lt;br /&gt;&lt;br /&gt;In Network make sure that connection is set to GPRS (or whatever you&lt;br /&gt;called it) and away you go.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-108506499721693711?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/108506499721693711/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=108506499721693711' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/108506499721693711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/108506499721693711'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2004/05/orange-gprs-from-palm-tungsten-t3.html' title='Orange GPRS from a Palm Tungsten T3'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7047935.post-108505199176952957</id><published>2004-05-20T11:19:00.000Z</published><updated>2004-05-20T15:03:54.050Z</updated><title type='text'>Reactivating Windows XP</title><content type='html'>That error often comes up if you need to activate xp again - you need to change or reenter the XP product key.&lt;br /&gt;&lt;br /&gt;If a system restore doesn't work (or if you have it turned off) open regedit and go to&lt;br /&gt;&lt;br /&gt;HKey_Local_Machine\Software\Microsoft\WindowsNT\Current Version\WPAEvents&lt;br /&gt;&lt;br /&gt;Open oobetimer, change one digit to anything else and close regedit.&lt;br /&gt;&lt;br /&gt;Start / Run / %systemroot%\system32\oobe\msoobe.exe /a go to "activate by phone" and then "change product key". Put your key back in.&lt;br /&gt;&lt;br /&gt;Reboot and it should be reactivated.&lt;br /&gt;&lt;br /&gt;Start / Run / %systemroot%\system32\oobe\msoobe.exe /a should say "already activated&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7047935-108505199176952957?l=red_techstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://red_techstuff.blogspot.com/feeds/108505199176952957/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7047935&amp;postID=108505199176952957' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/108505199176952957'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7047935/posts/default/108505199176952957'/><link rel='alternate' type='text/html' href='http://red_techstuff.blogspot.com/2004/05/reactivating-windows-xp.html' title='Reactivating Windows XP'/><author><name>Andy</name><uri>http://www.blogger.com/profile/10870238698170957005</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
